![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Word Export Main with Attributes Topic Summary: Created On: 30-Aug-2006 15:15 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: edit $DOORSHOME/lib/dxl/standard/export/office/word.dxl search for this line (it is at line 1302 in DOORS 7.1) textBuffer = richTextWithOle o.ALongText and add the following line after it: textBuffer += " [" identifier(o) "]" // add object identifier after object text. | |
![]() |
|
I'm trying to export a word requirements document using the main column. I would like to add the identifier and other attributes to the end of the main column using DXL and still preserve the heading formatting and hierarchy when I export. I've created the attached script. THis script looks great when in layout DXL, but it will not export or be copied to another attribute. I would appreciate any help you can give me. Thank-you!
|
|
![]() |
|
![]() |
|
Create a view that includes the main column on the left, and a column dispaying the object identifier on the right.
Export the module to Word in table format. In word, hide the table borders. Not perfect, but simple. A better way would be to edit the word exporter and add the identifier as it gets exported - then you could be selective about displaying the object ID only for requirements and not for headings etc. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
What you are proposing is not trivial. The best way to achieve your aim is to modify the rtf exporter that comes (unencrypted) with DOORS. You will have to gain some understanding of font tables and style sheets and the like, the neccessary modifications to the rtf exporter are unlikely to be enormous, but you may need to spend some understanding how rtf works. Alternatively if you are familiar with VBA try exporting all the attributes mentioned in your script in table format then run a macro to copy the relevant chunks to the main column if they are requirements and delete all the uneccessary columns when finished etc (this is probably the quickest way for most people).
------------------------- Regards, Richard Good Edited: 30-Aug-2006 at 15:42 by Richard Good |
|
![]() |
|
![]() |
|
edit $DOORSHOME/lib/dxl/standard/export/office/word.dxl
search for this line (it is at line 1302 in DOORS 7.1) textBuffer = richTextWithOle o.ALongText and add the following line after it: textBuffer += " [" identifier(o) "]" // add object identifier after object text. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
That worked perfectly. I made a quick change to only include the requirements. This does exactly what I needed. I was trying to edit the main column code towards the end of that script. Thank-you so much!
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Word Export Main with Attributes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.