Article View: adobe.scripting.indesign
Article #15947Rows.Add crashes ID [VB]
From: pentastic
Date: Wed, 05 Nov 2003 22:13
Date: Wed, 05 Nov 2003 22:13
11 lines
1228 bytes
1228 bytes
I'm trying to dynamically add a row to a table located in a TextFrame labelled "dataFrame" from VBScript, however whenever I call Rows.Add InDesign crashes. Here's my code:
Dim txf
set txf = myDocument.TextFrames.Item("dataFrame")
Dim tbl
set tbl = txf.Tables.Item(1)
tbl.Rows.Add 'Crash!
Any thoughts on why this is happening?
Also, the manual says that Rows.Add can take LocationOptions as idLocationOptions for a parameter. But there doesn't seem to be any documentation on idLocationOptions in the InDesign 2.0 scripting guide. What sort of values can this parameter take?
Technical Details
Message-ID:
<2cce3b85.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!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,2083ac54e91c8a76 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-05 14:38:26 PST From: pentastic@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Rows.Add crashes ID [VB] Message-ID: <2cce3b85.-1@webx.la2eafNXanI> Date: Wed, 5 Nov 2003 14:13:04 -0800 Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit