Article View: adobe.scripting.indesign
Article #19801Re: Database Driven Catalog - ???
From: maxdunn
Date: Fri, 15 Nov 2002 15:30
Date: Fri, 15 Nov 2002 15:30
10 lines
1406 bytes
1406 bytes
Any time you find yourself writing very similar code over and over and over, that is a good indication that you can somehow consolidate or modularize it. I'm quite certain you can do this all with ONE rs.movenext in the loop. Much less code... Also, I would strongly advise what I suggested earlier: a function that sets up a page for you. Makes the 32 textboxes and 16 rectangles and labels them so they can be referenced easily in the loop. Since in your case you know that every X records you will need a new page, you can simply increment a counter as the recordset is incremented, and test like: If (iCounter-1) Mod 16 = 0 Then SetupPage End If
Technical Details
Message-ID:
<1de69529.15@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!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-15 07:50:04 PST From: maxdunn <maxdunn@siliconpublishing.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Database Driven Catalog - ??? Message-ID: <1de69529.15@WebX.la2eafNXanI> Date: Fri, 15 Nov 2002 07:30:32 -0800 References: <1de69529.-1@WebX.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit