🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17467

Applying ParaStyle To Text used to work(VBA), and now it doesn't. (VB) WHY???

#17467
From: johannes
Date: Thu, 05 Jun 2003 14:14
26 lines
1503 bytes
Hi,

i got a script in which I applyed ParaStyles to objects, referencing
ParaStyles just by their Name
It used to work in vba.

Now in VB it is not working... so once the line:

objTextFrame.Texts.Item(1).ParagraphStyle =
myDoc.ParaStyles("NameOfParaStyle")

was enough, NOW - only this is working:

For i = 1 To m_objDoc.ParaStyles.Count
 If m_objDoc.ParaStyles.Item(i).Name = "NameOfParaStyle" Then
  objRubrikTextFrame.Texts.Item(1).ParagraphStyle =
m_objDoc.ParaStyles.Item(i)
 End If
Next


 (but to change that all over by scripts ... do I have to do that?)

Does anybody know the reason?

Thank you very much in advance - Johannes
Technical Details
Message-ID: <e553fe8f.0306050614.1018d7ef@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,ae19976bcb6c6de4,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-05 07:14:43 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: johannesbuchmann@hotmail.com (johannes)
Newsgroups: adobe.scripting.indesign
Subject: Applying ParaStyle To Text used to work(VBA), and now it doesn't. (VB) WHY???
Date: 5 Jun 2003 07:14:41 -0700
Organization: http://groups.google.com/
Lines: 26
Message-ID: <e553fe8f.0306050614.1018d7ef@posting.google.com>
NNTP-Posting-Host: 192.129.25.10
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1054822483 20584 127.0.0.1 (5 Jun 2003 14:14:43 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 5 Jun 2003 14:14:43 GMT