AW: Report style table on the fly

Rudolf Bargholz rudolf at
Thu Apr 8 10:11:31 UTC 2021

Hi Xavier,

There is a function for this:


A simple solution would be to generate a string of spaces of the maximum width of the column, and see how wide this string would be. Note: the width is based on the font you use. You could then use this value as a base width.


Rudolf Bargholz

-----Ursprüngliche Nachricht-----
Von: omnisdev-en <omnisdev-en-bounces at> Im Auftrag von IT
Gesendet: Donnerstag, 8. April 2021 11:53
An: OmnisDev List - English <omnisdev-en at>
Betreff: Report style table on the fly


I need to print a report with a table of products and variable number of details. 

SKU     Length     Width     Height     Weight     Material      Colour
36102   490         300        200        1,1    Polypropylene     Red
36103   500         300        225        2,0    Polypropylene     Blue
36104   600         350        225        2,5    Polypropylene     Grey

The number and width of columns varies depending on the product line.
So, I need to set the number of columns in the report and the adjust the width of the columns based on the content max length of the column and set position to the columns title labels.

Is there a way to know how much space takes a report field based on the content and font used?

Any advice to build a variable table style report on-the-fly ?


Manage your list subscriptions at Start a new message -> mailto:omnisdev-en at 

More information about the omnisdev-en mailing list