7
Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables. I have had some bad experience with DOORS and DXL scripts. There are some modules that contain a MS Word table that was pasted into some DOORS objects. When I export the module back to Word, the alignment and format of the table loses it's structure, looking messy such as follows: Heading 1 Heading 2 Heading 3 Cell Text 1 Cell Text 2 Cell Text 3 Item 1 Item 2 Item 3 Since about DOORS version 6, DOORS has been capable of recognising and displaying content that uses Rich Text Format (RTF) control words, such as those RTF control words that define a table structure. The problem is that DOORS does not provide any table management tools, as you would find in MSWord, for managing tables embedded into an object attribute in this way. When it comes to exporting to MSWord, there is obviously something wrong with how DOORS passes back the RTF code for the table resulting in the sort of problem that you're experiencing. So the only way I can see this being fixed is to get very medieval with the DXL in the MSWord exporter so that it passes the correct & compatible RTF code for the table to MSWord - not impossible, but a tough gig. You will need to know the RTF standard, the DOORS RTF library functions and in particular, DOORS OLE Automation Methods. Perhaps there is an easier way - the general convention when it comes to handling tables within DOORS is to insert tables as embedded MSWord \ MSExcel OLE objects rather than use the native DOORS Table feature, or in your case, rather than paste them in directly from MSWord. It might just be easier to remove and migrate these tables into embedded

Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables

Embed Size (px)

Citation preview

Page 1: Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables

Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables.

I have had some bad experience with DOORS and DXL scripts. There are some modules that contain a MS Word table that was pasted into some DOORS objects. When I export the module back to Word, the alignment and format of the table loses it's structure, looking messy such as follows:

Heading 1 Heading 2 Heading 3Cell Text 1 Cell Text 2 Cell Text 3Item 1 Item 2 Item 3

Since about DOORS version 6, DOORS has been capable of recognising and displaying content that uses Rich Text Format (RTF) control words, such as those RTF control words that define a table structure. The problem is that DOORS does not provide any table management tools, as you would find in MSWord, for managing tables embedded into an object attribute in this way.

When it comes to exporting to MSWord, there is obviously something wrong with how DOORS passes back the RTF code for the table resulting in the sort of problem that you're experiencing. So the only way I can see this being fixed is to get very medieval with the DXL in the MSWord exporter so that it passes the correct & compatible RTF code for the table to MSWord - not impossible, but a tough gig. You will need to know the RTF standard, the DOORS RTF library functions and in particular, DOORS OLE Automation Methods.

Perhaps there is an easier way - the general convention when it comes to handling tables within DOORS is to insert tables as embedded MSWord \ MSExcel OLE objects rather than use the native DOORS Table feature, or in your case, rather than paste them in directly from MSWord. It might just be easier to remove and migrate these tables into embedded MSWord OLE objects instead, then they should export to MSWord without any problem.

Page 2: Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables
Page 3: Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables

How To do this ?

The standard way is to manually:

• Select the table in Word

• Cut

• Paste-Special .. Word Document Object

Then import the file.

Since the Word->To->DOORS "porting" is originated in Word, it doesn't make much sense to use DXL during the import.

The main complaint about all the OLE tables in DOORS is that they are not searchable for key-words.

Page 4: Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables

And will paste the OLE object in word itself by using paste special option in DOORS as shown in below

Below screenshot shows both the table and OLE object as a image

Page 5: Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables

Now we will copy below OLE object to doors object from object properties.

Page 6: Unable to retain the table grid with the proper alignment without repaste the tables in DOORS when imported from Word document with many Word tables

In this way even if we export the module into the reqif and again import it to project the table will not get disappeared. Which is shown below.