![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Exporting Information to Word headers and footers Topic Summary: Created On: 29-Jan-2009 20:58 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|||
I know that this has been discussed before, but I am not finding a solution to my problem. So here it is:
We are using an export script that will export information contained in Module attributes to specific DocVariables in a Word template. All the information exports, however, the headers and footers must be refreshed manually for the field codes contained within to be updated with the correct information. So after the export, we have to open the header, select all (Ctrl-A) and then refresh (F9). We then do it again for footers. Does anyone know of a way to automate this in the DXL script so that the users don't have to do it? Thanks. ------------------------- Matt Herald Systems Engineering Tools Administrator ITT Corporation - Communications Systems Fort Wayne, IN |
|||
![]() |
|||
![]() |
|||
Try the attached function, which took me several passes to get right! It's still got my debug print statements in, in case you want to see what it's doing.
You just need to pass it the handle to the Word document, which I'll assume you already have in your script... Paul PS You'll also need to know what the cPropertyCount and so on constants are - these can be found in the Word VB help, or in the attachment (I think someone has posted a more extensive version of this somewhere else in this forum).
------------------------- Paul dot Tiplady at TRW dot com TRW Automotive Edited: 30-Jan-2009 at 10:34 by Paul Tiplady |
|||
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.