[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: "'framers@xxxxxxxxx'" <framers@xxxxxxxxx>
Subject: Programmatically autosizing tables
From: Karl Schmidtmann <kschmidtmann@xxxxxxxxxxxxxxxx>
Date: Tue, 23 Jan 2001 18:29:23 -0800
Sender: owner-framers@xxxxxxxxx
FrameFolks: Somebody much smarter than me asks: I'm using the MIF format to publish documents dynamically from a database. One issue I'm running into, is that there can be arbitrary text which I need to format into tables. By using a TblTag, I can reference a table format from the catalog which has the appropriate properties, but I'm having difficulty with the sizing of columns. Because I don't know what text will be in it, I don't know how wide a column should be. 1.) Does anyone know of a MIF directive which will autosize them for me so they don't run off the side of the page? Alternatively, I know that macros are available in the UNIX version--unfortunately, we're working under Windows. One possibility would be to create the mif, send it to a UNIX FrameMaker, write a macro which could search for each occurrence of our TblTag, and then use Table > Resize Columns... to resize each one-by-one, before saving it as mif so that it could be taken to the Windows version (which is all we have at this point). 2.) Does anyone know whether a Win->Unix->Win round trip is clean and would, for instance, diff(1) or cmp(1) as equal (when nothing's been done). 3). Is this idea possible to implement with a macro? On the other hand, 4.)***Does anyone know of a better way which I haven't thought of? Thanks in advance for help. Karl Schmidtmann ** To unsubscribe, send a message to majordomo@omsys.com ** ** with "unsubscribe framers" (no quotes) in the body. **