Article View: adobe.scripting.indesign
Article #17609Re: Excel to InDesign script
From: Richard R�nnb�ck
Date: Sun, 25 May 2003 11:43
Date: Sun, 25 May 2003 11:43
30 lines
2267 bytes
2267 bytes
Wolfgang You are right, but that was not my intention with this script, instead it is aimed at cases where you have a fairly small Excel sheet, lets say a report card, customer card, etc. and need to insert values from these into your document. The reason I chose this approach was that character styles is very familiar to most users and hence setting up the document template so to speak would be very easy and require no scripting knowledge whatsoever. What approach you should to take depends very much on the nature of your documents. The problem one faces is to have the target defined so it can be referred to in a predictable way no matter if you add, remove or rearrange page items. There is one approach that would allow you to define source document, sheet, cell, as well as the target with more flexibility, and that is to tag the target text/object with an XML tag and let the attributes define all these things, something like this: <myXMLtag Cell="A2" Sheet="Sheet 1" SourceDoc="Macintosh HD:Users:richardr:desktop:Excelfile.xls"> That way you could get away with just one XML-tag and just change the attributes. There are however problems with that too, for one, you can not tag things in an InDesign table Perhaps someone else has a better way, but it seems to me that what you would need is a plugin for database publishing
Technical Details
Message-ID:
<BAF678F7.11E45%richard.ronnback@telia.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9417b.-1@WebX.la2eafNXanI> <1de9417b.0@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,29e51ec07bf84c0a X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-25 05:13:12 PST From: Richard R�nnb�ck <richard.ronnback@telia.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Excel to InDesign script Message-ID: <BAF678F7.11E45%richard.ronnback@telia.com> Date: Sun, 25 May 2003 04:43:19 -0700 References: <1de9417b.-1@WebX.la2eafNXanI> <1de9417b.0@WebX.la2eafNXanI> Lines: 44 User-Agent: Microsoft-Entourage/10.1.1.2418 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit