Article View: adobe.scripting.indesign
Article #18793indesign-scripting : Style Creation
From: BATTISTELLI Laurent
Date: Tue, 18 Feb 2003 14:41
Date: Tue, 18 Feb 2003 14:41
30 lines
1619 bytes
1619 bytes
how can we import a style (character or paragraph) ? I tried this version Public Function testcreation(mydocument As InDesign.Document, myStyleDocument As InDesign.Document) Dim j As Integer Dim val, valScale As Double Dim existingCharac As InDesign.CharStyle Dim mynewCharac As InDesign.CharStyles For j = 2 To myStyleDocument.CharStyles.Count Set existingCharac = myStyleDocument.CharStyles.Item(j) mydocument.CharStyles.Add Set mydocument.CharStyles.Item(mydocument.CharStyles.Count) = existingCharac Next j End Function but that didn't import all the characteristic of the style how can we make ? will I have to specify all characteristic one by one ? I don't want to use template ( thanks Dave but I explain one time why I can not ) thanks
Technical Details
Message-ID:
<3E5245FF.9050807@comidoc.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!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,a7f74efca9b23c0b,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-18 07:08:09 PST From: BATTISTELLI Laurent <l.battistelli@comidoc.fr> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!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: indesign-scripting : Style Creation Message-ID: <3E5245FF.9050807@comidoc.fr> Date: Tue, 18 Feb 2003 06:41:03 -0800 Lines: 32 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: fr-fr, fr MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit