Article View: adobe.scripting.indesign
Article #19849Re: Database Driven Catalog - ???
From: maxdunn
Date: Tue, 19 Nov 2002 01:00
Date: Tue, 19 Nov 2002 01:00
29 lines
1682 bytes
1682 bytes
Well, there are just too many ways to do it. The way you're headed seems like you want to actually pass the page you've added to SetupPage, so it can take that page object as an argument after all...
1. Change in SetupPage():
REM CHANGED HERE:
Public Function SetupPage(oPage)
Dim myInDesign As InDesign.Application
Set myInDesign = CreateObject("InDesign.Application.2.0")
Set myDocument = myInDesign.ActiveDocument
REM AND HERE:
Set myPage = oPage
...
2. Then change in DBtoID()
REM THE FIRST CALL TO SETUP FIRST PAGE TO:
...
Set myPage = myDocument.Pages.Item(1)
iPage = 1
myColumnCounter = 0
myRowCounter = 0
REM CHANGE HERE:
SetupPage myPage
REM THEN LATER WHEN YOU CALL SETUPPAGE:
Set myPage = myDocument.Pages.Add(1)
SetupPage myPage
Technical Details
Message-ID:
<1de69529.27@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-08!supernews.com!newspump.sol.net!newshosting.com!news-xfer1.atl.newshosting.com!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de69529.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,4348409c0a586298 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-18 19:29:44 PST From: maxdunn <maxdunn@siliconpublishing.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-08!supernews.com!newspump.sol.net!newshosting.com!news-xfer1.atl.newshosting.com!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Database Driven Catalog - ??? Message-ID: <1de69529.27@WebX.la2eafNXanI> Date: Mon, 18 Nov 2002 17:00:15 -0800 References: <1de69529.-1@WebX.la2eafNXanI> Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit