🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8111

Re: [VBA CS2] Random text formatting errors and general slow down

#8111
From: Olav_Kvern
Date: Fri, 03 Nov 2006 20:55
17 lines
1855 bytes
Hi Stan,

re: "random" missing formatting

There are several things that could be happening here--the most likely of which is that the problem is that your text references no longer point to the object you want them to point to. If adding text to myLine2 (assuming myLine2 is a Line object) causes line to expand to fill more than one line, then the myLine2.InsertionPoints.Item(-1) will not be at the end of the text. Text lines are dynamic--if you add or remove lines of text, the Lines collection will change to reflect that fact. How are you getting the reference for myLine in the first place?

Another thought is that there could be some interaction with paragraph styles/nested styles, but my first guess is that the problem has to do with text references.

re: slowdown

A simple "save" won't clear out the "undo" queue (which is what's causing the slowdown)--you actually need to do a save as. I'm still hoping we can find a way to disable the undo queue, but, until we do, doing a save as every so often is the best I can offer.

For a real speed boost, you might consider having your Access database write a tagged text file to disk, then place the tagged text file.

Thanks,

Ole
Technical Details
Message-ID: <3bc22c46.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc22c46.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,b7d54ad66a4bb92b,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [VBA CS2] Random text formatting errors and general slow down
Message-ID: <3bc22c46.1@webcrossing.la2eafNXanI>
Date: Fri, 3 Nov 2006 12:55:56 -0800
References: <3bc22c46.-1@webcrossing.la2eafNXanI>
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit