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: Exporting Information to Word headers and footers
Topic Summary:
Created On: 29-Jan-2009 20:58
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.
 29-Jan-2009 20:58
User is offline View Users Profile Print this message


Matthew Herald

Posts: 14
Joined: 19-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 30-Jan-2009 10:30
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

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

ole1.inc
ole1.inc  (10 KB)



-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive

Edited: 30-Jan-2009 at 10:34 by Paul Tiplady
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.