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: Add document property to Word document
Topic Summary: use document ptoperties for word document
Created On: 2-May-2007 10:57
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.
 2-May-2007 10:57
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

First. I'm having trouble with linebreaks being recognised, so will use tilda (~)for a linebreakhere.~ Ever wanted to insert custom auto text throughought a word document published from DOORS?~ An example is when you want to add text such as the company name into a word document footer.,and then allow the text to be changed later in the word doc without re-entering each time.~ If you have the information as a word Custom Document Property, you can then change the text later in word Properties Dialog, then update all fields in word.~ I dont have the dxl code for entering an auto field here, I do that in VBA. Will add that later if requested.~ This code can be added to word.inc (or wexp presumably?) to adda new Custom Document Property.~

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
 2-May-2007 17:19
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

When I started DOORS, had a partner that had a clue. He came up with a way to send MS-Word 'variables' from the module, such that they'd display in Headers and Footers and elsewhere. It required the use of a specifically-formed MS-Word template file *.dot. I cannot find that template. IIRC, you used a field to declare the variable (perhaps at the top of the template), and then used a different field to display the variable's value where you wanted it (perhaps in the footer). Once that worked, the following DXL in the exporter was used to output the info to the template.

That's all I got.

- Louie
Report this to a Moderator Report this to a Moderator
 4-May-2007 10:24
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

OK, here is the second part of the puzzle.~Note that the code included here is Microsoft Visual Basic, VBA, not DXL.~This code can be included in the word template used for the export, and triggered from DXL later.~ What this VBA does, is to use one of the Custom Document Properties generated above, and then insert it into the word doc as a field that references the doc property.~ Can be used in the body of the document, or the header/footer.

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.