🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16474

Re: (VB) Table Questions

#16474
From: Iolaire McFadden
Date: Mon, 08 Sep 2003 13:59
22 lines
1627 bytes
re: 3. Is it possible to detect whether a cell is overset (i.e. with a red dot)?
This is how I've been able to accomplish your request.

' This is all contained within nested loops for:
' row_loop = 1 to the count of the rows
' column_loop = t to the count of columns
' 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: <2ccd478a.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd478a.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f07740d126323b00
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-08 07:08:03 PST
From: "Iolaire McFadden" <imcfadden@costar.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: (VB) Table Questions
Message-ID: <2ccd478a.0@webx.la2eafNXanI>
Date: Mon, 8 Sep 2003 06:59:55 -0700
References: <2ccd478a.-1@webx.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit