Article View: adobe.scripting.indesign
Article #18794Re: indesign-scripting : Style Creation
From: BATTISTELLI Laurent
Date: Tue, 18 Feb 2003 16:09
Date: Tue, 18 Feb 2003 16:09
47 lines
2050 bytes
2050 bytes
why when i made Dim existingCharac, mynewCharac As InDesign.CharStyle Set existingCharac = myStyleDocument.CharStyles.Item(j) Set mynewCharac = mydocument.CharStyles.Add the Appliedfont element is variant/string for the existing one and a variant/long for the new one why !!!!!!!!!!!!!!! BATTISTELLI Laurent a οΏ½crit: > 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:
<3E525AD2.2050504@comidoc.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<3E5245FF.9050807@comidoc.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,a7f74efca9b23c0b X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-18 08:40:13 PST From: BATTISTELLI Laurent <l.battistelli@comidoc.fr> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!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: Re: indesign-scripting : Style Creation Message-ID: <3E525AD2.2050504@comidoc.fr> Date: Tue, 18 Feb 2003 08:09:54 -0800 References: <3E5245FF.9050807@comidoc.fr> Lines: 49 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