![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Table of contents in wordexport Topic Summary: Created On: 28-Jun-2004 16:21 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Once its in MS-Word you can select the table (or the entire contents) and update fields F9.
|
|
![]() |
|
![]() |
|
Yeah but I want to automate it ![]() |
|
![]() |
|
![]() |
|
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 (....) |
|
![]() |
Telelogic DOORS
» General Discussion
»
Table of contents in wordexport
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.