🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #945

Re: Apply Cell Style to a Table

#945
From: Robert Tkaczyk
Date: Thu, 26 Feb 2009 20:24
16 lines
1373 bytes
and before you apply CellStyle - first you need to call clear local formatting

Sub ClearCellStyleOverrides([ClearingOverridesThroughRootCellStyle As Boolean = False])
    Member of InDesign.Cell
    Clear Cell Style Overrides / ClearingOverridesThroughRootCellStyle: If true, clears all overrides, whether or not they are defined in the underlying cell style

because if do not do this - your new CellStyle will not work - this happens in VB on PC - maybe JS is better ...

so in JS this probably will be:

 myTable.cells.itemByRange(0,-1).clearCellStyleOverrides;

robin

-- 
www.adobescripts.com
Technical Details
Message-ID: <E46D4620D633180D517BD06FA10B4D45@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b80dd1.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8fbba01eda6c19d3
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Robert Tkaczyk <indesignscripts@wp.pl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Apply Cell Style to a Table
Message-ID: <E46D4620D633180D517BD06FA10B4D45@in.webcrossing.la2eafNXanI>
Date: Thu, 26 Feb 2009 12:24:43 -0800
References: <59b80dd1.-1@webcrossing.la2eafNXanI>
Lines: 21
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
X-Antivirus: avast! (VPS 090225-1, 2009-02-25), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit