🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17054

VB - Fit content to cell

#17054
From: Iolaire McFadden
Date: Wed, 02 Jul 2003 17:58
5 lines
1218 bytes
Hi, I'd like to fit the text content of a cell to the cell width so it doesn't wrap onto two lines. My desired logic is to identify (test) a cell which overflows or has text on two lines and to adjust it's Leading until the test is false. However I can not find out how to measure the length of the text or figure out how many lines it is.

Please can someone suggest how to determine if the text in the cell wraps or is longer than the cell width in Visual Basic?
Thank you,
iolaire
Technical Details
Message-ID: <1de9c4c1.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,57c92f4cbe1a389b,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-02 11:08:06 PST
From: "Iolaire McFadden" <imcfadden@costar.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: VB - Fit content to cell
Message-ID: <1de9c4c1.-1@WebX.la2eafNXanI>
Date: Wed, 2 Jul 2003 10:58:59 -0700
Lines: 10
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit