Article View: adobe.scripting.indesign
Article #19257Re: transpose a table
From: peter long
Date: Mon, 30 Dec 2002 20:24
Date: Mon, 30 Dec 2002 20:24
12 lines
1269 bytes
1269 bytes
Oh oh, no takers. Perhaps I'll talk myself thru it, pretend I'm Dave!
Step 1 tget the text item containing the table and get the basic table attributes from it (general row, col shading anyway. And see what else can easily transpose).
step 2: create a new text item and newtable with the same attributes except # of rows=old cols, # of cols= old rows
step 3 bigloop thru old rows, littleloop thru old cols
put each old cell content into newtable row oldcol, col bigloop
done. There that was easy. hmmmm....
peter
Technical Details
Message-ID:
<1de7287f.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de7287f.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9de678854bbefa48 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-30 12:40:40 PST From: "peter long" <kl@yt.sympatico.ca> Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: transpose a table Message-ID: <1de7287f.0@WebX.la2eafNXanI> Date: Mon, 30 Dec 2002 12:24:28 -0800 References: <1de7287f.-1@WebX.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit