Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dynamically adjusting height and width of tables imported from XML

142 views
Skip to first unread message

Prasad Shirgaonkar

unread,
Aug 4, 2003, 1:04:53 PM8/4/03
to
We are using In Design Templates to create a few reports. The templates consist of tabular and textual data. In the templates, we have kept fixed place and size of each text frame in order to maintain consistency of look & feel and formatting of the reports (for tabular as well as textual data)

The textual data is entered manually everyday and the tabular data is imported from XML files.

We are facing problems with positioning & formatting of the imported tables from XML. The problem is coming because the contents of tabular data are varying (i.e. the number of characters in each column may vary or number of rows may be different everyday)

I would like to know, if there is any way in which the column widths can be adjusted automatically without affecting the total width / layout of the table when we import tabular data from XML files?

(I.e. a feature similar to an HTML feature where we can specify Table width but not the individual column widths so that the columns adjust automatically within specified table width)

Funnily, I have a slightly different requirement in case of Height of the tables! If we specify height of the table, the table is displaying only the number of rows, which it can accommodate in the specified height. Is there anyway by which the table can automatically expand if the number of rows from imported XML file are more than that can fit in the specified height?

In summary, I want my imported XML data to fit in the tables, which have fixed table width, variable column width and expandable height based on number of rows.

Can someone help / guide me?

Ian A. Wright

unread,
Aug 13, 2003, 12:06:07 AM8/13/03
to
Prasad:

You'll be more likely to get a response on InDesign and scripting at: <http://www.adobe.com/products/indesign/scripting.html> The scripting forum is available here in User-to-User: <http://www.adobeforums.com/cgi-bin/webx?1...@17.oK7Ta3IBaEl^0@.eea5b36> There is an InDesign SDK Forum here: <http://www.adobeforums.com/cgi-bin/webx?14@@.ee6b334>

pjredman

unread,
Aug 13, 2003, 2:59:09 PM8/13/03
to
Prasad,

Scripting does provide a good deal of automation for formatting tables. It is possible to write a script that will set your table to a specific width for example.

Phil Redman

0 new messages