Article View: adobe.scripting.indesign
Article #8996Horizontal alignment of contents in cells (row)
From: Michael_L_Joseph
Date: Tue, 19 Sep 2006 17:24
Date: Tue, 19 Sep 2006 17:24
21 lines
1657 bytes
1657 bytes
Hi, I have a table with several rows which themselves contain several cells. I'm tryin to make the cells contents align to the right. Unfortunately I keep getting an error with the following code: for( var i = 1; i < myTable.rows.length; i = i+1 ) myTable.rows[i].height = '0 pt', myTable.rows[i].cells[0].width = '46mm', myTable.rows[i].topInset = '0.6mm', myTable.rows[i].bottomInset = '0.6mm', myTable.rows[i].leftInset = '0.2mm', myTable.rows[i].rightInset = '0.2mm', myTable.rows[i].cells.everyItem().texts[0].appliedParagraphStyle = "Macro 2 Body", myTable.rows[i].fillColor = 'TABLE_White', myTable.rows[i].bottomEdgeStrokeWeight = '0 pt', myTable.rows[i].topEdgeStrokeWeight = '0 pt', myTable.rows[i].leftEdgeStrokeWeight = '0 pt', myTable.rows[i].rightEdgeStrokeWeight = '0 pt', myTable.rows[i].cells.everyItem().rightEdgeStrokeWeight = '0 pt'; myTable.rows[i].cells[i].Justification = idJustification.idRightAlign; Can someone help me on if the last line is the right way to align each cells contents to the right? Cheers, Michael
Technical Details
Message-ID:
<3bc1b144.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,50ba3bb4353cb621,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Michael_L_Joseph@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Horizontal alignment of contents in cells (row) Message-ID: <3bc1b144.-1@webcrossing.la2eafNXanI> Date: Tue, 19 Sep 2006 10:24:50 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing