🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16939

Re: VB changing TextForm style

#16939
From: maxdunn
Date: Tue, 22 Jul 2003 15:58
21 lines
1593 bytes
Perhaps This catalog example <http://www.siliconpublishing.com/Indesign/CatalogExample.htm> will help you.

In that example, I set the paragraph and character style of the insertion point before writing the text:
Set oDescText = oPage.TextFrames.Add
oDescText.GeometricBounds = Array(dY1, dX1, dY2, dX2)
oDescText.TextFramePreferences.InsetSpacing = Array(2, 2, 0, 2)
Set oPoints = oDescText.ParentStory.InsertionPoints
 ' Product code
    Set oPoint = oPoints.Item(oPoints.Count)
    oPoint.ParagraphStyle = oDocument.ParaStyles.Item("Body Text")
    oPoint.CharacterStyle = oDocument.CharStyles.Item("Bold")
    oPoint.TextContents = "Product Code: " & vbTab
    Set oPoint = oPoints.Item(oPoints.Count)
    oPoint.CharacterStyle = oDocument.CharStyles.Item("Plain")
    sBuf = rs.Fields("ProductCode")
    oPoint.TextContents = sBuf & vbLf
...

HTH,

Max
Technical Details
Message-ID: <1dea04ab.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1dea04ab.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f0528502556bc92c
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-22 09:07:48 PST
From: maxdunn <maxdunn@siliconpublishing.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!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: VB changing TextForm style
Message-ID: <1dea04ab.0@WebX.la2eafNXanI>
Date: Tue, 22 Jul 2003 08:58:41 -0700
References: <1dea04ab.-1@WebX.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit