Article View: adobe.scripting.indesign
Article #15463Re: VB.NET and SEARCH...
From: Roberto Soto
Date: Wed, 03 Dec 2003 20:30
Date: Wed, 03 Dec 2003 20:30
15 lines
1016 bytes
1016 bytes
Dean Set your selection to nothing before change the character style The COMException will not ocurred any more (I guess): Dim foundobject as object inDesignApp.Select (myTextFrame.ParentStory.TextStyleRanges.Item(1)) foundobject = inDesignApp.Selection.Item(1) inDesignApp.Selection = InDesign.idNothingEnum.idNothing foundobject.CharacterStyle = curCharStyle Roberto
Technical Details
Message-ID:
<2cceb05e.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cceb05e.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8b1f02cd57c22f97 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-03 12:37:53 PST From: "Roberto Soto" <roberto1soto@yahoo.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: VB.NET and SEARCH... Message-ID: <2cceb05e.0@webx.la2eafNXanI> Date: Wed, 3 Dec 2003 12:30:13 -0800 References: <2cceb05e.-1@webx.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit