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: Table of contents in wordexport
Topic Summary:
Created On: 28-Jun-2004 16:21
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.
 28-Jun-2004 16:21
User is offline View Users Profile Print this message


Alexander Lundh

Posts: 8
Joined: 28-Jun-2004


Hi all!

I have a problem with exporting doors -> word. Im using a slightly altered version of the export that comes with DOORS (7.0)
I have a few bookmarks in my template a "TOC" bookmark on page 2, and a "DocumentStart" bookmark on page 3.

As of today Im generating the toc in DXL, but I want to change this so that I have an empty TOC in the template, and after the import I want to update that.

How do I perform the update of the toc-object?

-Alex
Report this to a Moderator Report this to a Moderator
 29-Jun-2004 13:59
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Once its in MS-Word you can select the table (or the entire contents) and update fields F9.
Report this to a Moderator Report this to a Moderator
 29-Jun-2004 16:14
User is offline View Users Profile Print this message


Alexander Lundh

Posts: 8
Joined: 28-Jun-2004


Yeah but I want to automate it
Report this to a Moderator Report this to a Moderator
 5-Jul-2004 11:11
User is offline View Users Profile Print this message


Alexander Lundh

Posts: 8
Joined: 28-Jun-2004

I just wanted to post the solution of the problem,
in case anyone else wants this;
Ive added this to doExportVBA;

checkRes (oleGet(objDoc, "Bookmarks", objBookmarks))
if (null objBookmarks) {
ack "Unable to get Bookmarks"
halt
}

//write all header info (bookmarked)
writeHeaderInfo

//for creating TOC
checkRes(olePut(objWord,cPropertyScreenUpdating,false))

// Just fill in from known styles
fillStyleNameArrays

getWordStyleNames objDoc

if (toggleParaStyle)
getStyleOKNames exportType

if (toggleStyleMapping)
{
// Show style mapping dialogue
styleMappingDialogue
makeVisible objWord
}

assertStyles

//create TOC
clear objArgBlock
put (objArgBlock, "DocumentStart" )
errMess = oleMethod(objBookmarks, cMethodItem, objArgBlock, objBookmark)
if (errMess == null) {
vbaCheckRes(oleMethod(objBookmark, cMethodSelect))
}
objRangeBM = getRange objSel

if (exportType == layoutTypeBook)
{
wordExportAsBookVBA forWin
}
else
{
wordExportAsTableVBA forWin
}

collapseSelection

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