![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Add document property to Word document
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.