Article View: adobe.scripting.indesign
Article #17901How to place a TOC (VB)
From: Jens Schulze
Date: Wed, 07 May 2003 10:13
Date: Wed, 07 May 2003 10:13
17 lines
1600 bytes
1600 bytes
Hi everyone, thanks to the formidable scripting guide and the including examples, I'm stuck in placing a table of contents without being on the page itself where I want it to be placed. I use the following statement, where myTOCPage is the page where I want to have the TOC to be placed and myTOCStyle is the style of the TOC: Call myDocument.CreateTOC(myTOCStyle, placePoint:=myTOCPage) This triggers me an automation error, so there must be something wrong with this optional named parameter, because Call myDocument.CreateTOC(myTOCStyle) works as expected, but places the generated TOC text frame on the actual page, not where it has to be. Hope someone also had encountered this and can help me. Thanks in advance. Jens
Technical Details
Message-ID:
<978F8C773130D27AA937C55AEDED45EE@in.WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,3ce4be3963ea346a,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-07 03:38:09 PST From: "Jens Schulze" <adobeforums@trickbetrueger.org> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: How to place a TOC (VB) Message-ID: <978F8C773130D27AA937C55AEDED45EE@in.WebX.la2eafNXanI> Date: Wed, 7 May 2003 03:13:53 -0700 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit