🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18269

Creating a page and a table

#18269
From: Gerhard Faehling
Date: Fri, 11 Apr 2003 16:50
31 lines
1576 bytes
Hi,

I'm a newbie in scripting InDesign - so sorry for this (hopefully) easy question.

I have an existing document. Now I want to create a new page with a table on it - with VBA.

That's my way so far:

Dim indDoc As InDesign.Document
Dim indPage As InDesign.Page
Dim indTxtFrame As InDesign.TextFrame

Dim myInDesign As InDesign.Application
Set myInDesign = CreateObject("InDesign.Application.2.0")
myInDesign.Documents.Open ("c:\work\test.indd")

Set indDoc = myInDesign.Documents("test.indd")

' New page
Set indPage = indDoc.Pages.Add

' New TextFrame
Set indTxtFrame = indPage.TextFrames.Add

Now I can add an table to the TextFrame - no problem.

But I have to position and enlarge the TextFrame. So what is the right way for that? I think I have to set the PathPoints - correct? But how do I set the exact coordinates?

Thanks for any answer

Gerhard
Technical Details
Message-ID: <1de8b3e4.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2c7f2031a38a428b,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-11 10:08:03 PST
From: "Gerhard Faehling" <gf.adobe@comsulting.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Creating a page and a table
Message-ID: <1de8b3e4.-1@WebX.la2eafNXanI>
Date: Fri, 11 Apr 2003 09:50:55 -0700
Lines: 35
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit