Article View: adobe.scripting.indesign
Article #19362Re: Problem with TextContents property
From: Olav Kvern
Date: Tue, 07 Jan 2003 22:52
Date: Tue, 07 Jan 2003 22:52
20 lines
1545 bytes
1545 bytes
Chris-- I think the problem of having one of the strings appear before the "No Found" line lies in the way you're trying to insert the strings. If you really want to insert the strings sequentially, rather than constructing the string and then setting the TextContents to that string in a single step, you'll probably be better off working with: txtFrame.InsertionPoints.Item(txtFrame.InsertionPoints.Count).TextContents That way, the text will always be added at the end of the text frame. I'd also use vbCr instead of "\n"--I'm not actually sure that InDesign consistently interprets "\n" as a carriage return (which might be the source of your odd numbers). By the way--txtFrame.TextLines will go to 0 if the text can't be composed in the text frame (if it's all set to no break, for example). Thanks, Ole
Technical Details
Message-ID:
<1de72f24.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de72f24.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,833b34ad00319d78 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-01-07 15:10:04 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Problem with TextContents property Message-ID: <1de72f24.1@WebX.la2eafNXanI> Date: Tue, 7 Jan 2003 14:52:09 -0800 References: <1de72f24.-1@WebX.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit