Article View: adobe.scripting.indesign
Article #18965Object error and place method error(C#)
From: Yasushi Ozawa
Date: Sun, 09 Feb 2003 10:04
Date: Sun, 09 Feb 2003 10:04
28 lines
1835 bytes
1835 bytes
I've wriiten scripts using c#, and face to troubles.
Anyone teach me?
After getting textframe object,
InDesign.TaggedTextImportPreference tagTextImpPrefs = (InDesign.TaggedTextImportPreference)app.TaggedTextImportPreferences;
tagTextImpPrefs.StyleConflict = InDesign.idTagDefinition.idTagFileDefinition;
Point pStart = new Point(0,0);
myTextFrame.Place("D:\\text\\text1.txt",pStart,1,false,false,true,false);
I call place method,then coming up the bellow assert dialog(I use InDesign Debbuger Version 2.0.1J),
D:Dev/****/OLEAutomationSpecific.cpp(358)
Assert: This object is not an InDesign COM object
In case of placing images into Rectangles, the same.
Why this assert return?
And I skip this asert dialog.
The taggedtext file flow into the textframe,
but text style is a little bit changed from the source text style.
For example, font style and text alignment is changed to the default.
I have 4 textframes in a page, 1 frame is good, 3 frames are bad.
Ofcource, manually place them, it's OK!.
Thanks,
Yasushi
Technical Details
Message-ID:
<1de7c531.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.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,3ed33ab29b2e3ac5,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-09 02:07:54 PST From: "Yasushi Ozawa" <ozawa@air.linkclub.or.jp> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Object error and place method error(C#) Message-ID: <1de7c531.-1@WebX.la2eafNXanI> Date: Sun, 9 Feb 2003 02:04:49 -0800 Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit