Article View: adobe.scripting.indesign
Article #15140Re: How to find a Cell Overflow/Overset (Red dot)-- VB
From: Iolaire_McFadden
Date: Fri, 02 Jan 2004 13:26
Date: Fri, 02 Jan 2004 13:26
15 lines
1404 bytes
1404 bytes
This is a snippet from ID 2.x - thanks to this forum I learned to count the lines which seems to work. ' count the text lines to see if it overflows and wraps to another line cell_lines = MyTable.Rows.Item(row_loop).Cells.Item(column_loop).TextLines.Count 'if it wraps to another line the text line count will be over 1 Do While cell_lines > 1.5 ' get the current tracking MyIn_Tracking = MyInsertionpoint.Tracking 'compute a new tracking of current - 10 MyIn_New_Tracking = MyIn_Tracking - 10 ' set the new tracking MyInsertionpoint.Tracking = MyIn_New_Tracking ' count the text lines to see if it overflows and wraps to another line cell_lines = MyTable.Rows.Item(row_loop).Cells.Item(column_loop).TextLines.Count Loop Good luck, iolaire
Technical Details
Message-ID:
<2ccf2941.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf2941.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,bc8f3da4553b7723 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-02 05:37:36 PST From: Iolaire_McFadden@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: How to find a Cell Overflow/Overset (Red dot)-- VB Message-ID: <2ccf2941.0@webx.la2eafNXanI> Date: Fri, 2 Jan 2004 05:26:18 -0800 References: <2ccf2941.-1@webx.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit