🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14965

Re: [VB] Insert more then one string / text into InDesign! How TO???

#14965
From: maxdunn
Date: Wed, 07 Jan 2004 18:33
18 lines
1315 bytes
You can go step by step using insertion points.

I made an example that may help:
 <http://www.siliconpublishing.com/InDesign/CatalogExample.htm>

You basically set the insertion point to the latest one, like:
    Set oPoint = oPoints.Item(oPoints.Count)

apply the style you want:
    oPoint.AppliedParagraphStyle = oDocument.ParagraphStyles.Item("Body Text")

read the field from the database (this is inside a do while loop iterating through the records in a table or query):
    sBuf = rs.Fields("ProductCode")

and set the contents of the insertion point to the value you've read from the database:
    oPoint.Contents = sBuf & vbLf

Max
Technical Details
Message-ID: <2ccf3cf3.4@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf3cf3.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f351a5f3b6e6ec7e
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-07 10:37:55 PST
From: maxdunn@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Insert more then one string / text into InDesign! How TO???
Message-ID: <2ccf3cf3.4@webx.la2eafNXanI>
Date: Wed, 7 Jan 2004 10:33:00 -0800
References: <2ccf3cf3.-1@webx.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit