Article View: adobe.scripting.indesign
Article #18217Creating a page and a table
From: Gerhard Faehling
Date: Wed, 09 Apr 2003 07:36
Date: Wed, 09 Apr 2003 07:36
35 lines
1818 bytes
1818 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.
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:
<b70ihp$9qfum$1@ID-16994.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!fu-berlin.de!uni-berlin.de!pd9e463f1.dip.t-dialin.NET!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,14c19194aca05928,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-09 00:36:27 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!fu-berlin.de!uni-berlin.de!pd9e463f1.dip.t-dialin.NET!not-for-mail
From: "Gerhard Faehling" <gf.news@comsulting.de>
Newsgroups: adobe.scripting.indesign
Subject: Creating a page and a table
Date: 9 Apr 2003 07:36:26 GMT
Lines: 35
Message-ID: <b70ihp$9qfum$1@ID-16994.news.dfncis.de>
NNTP-Posting-Host: pd9e463f1.dip.t-dialin.net (217.228.99.241)
Mime-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1049873786 10305494 217.228.99.241 (16 [16994])
User-Agent: Microsoft Outlook Express/6.0.2800.1106 OE-Tools/0.9.9a