Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Word Export Main with Attributes
Topic Summary:
Created On: 30-Aug-2006 15:15
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Wednesday, August 30, 2006 4:22 PM

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.
 30-Aug-2006 15:15
User is offline View Users Profile Print this message


Christienne Mancini

Posts: 18
Joined: 30-Aug-2006

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!
Report this to a Moderator Report this to a Moderator
 30-Aug-2006 15:30
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 30-Aug-2006 15:41
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

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
Report this to a Moderator Report this to a Moderator
 30-Aug-2006 16:12
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer 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.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 30-Aug-2006 16:21
User is offline View Users Profile Print this message


Christienne Mancini

Posts: 18
Joined: 30-Aug-2006

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!
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.