Maximum column width

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
d3nton
Posts: 133
Joined: Thu Oct 25, 2012 9:48 am

Maximum column width

Post by d3nton »

Hi!

Is there a way to set the maximum allowed column width when using TJamXLSWorkSheet.AutoWidthCols in order to e.g. prevent
columns larger than e.g. 500 pixels?
If not, would it be possible to add such an option (maybe as a property of the sheet)?
Thank you.

Best regards
d3nton.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Maximum column width

Post by larsa »

Hello

This is fixed now.

AutoWidthCols and AutoHeightRows are no declared as:

procedure AutoWidthCols(const Col1,Col2: integer; AMinWidth: integer = 0; AMaxWidth: integer = MAXINT);
function AutoHeightRows(const Row1,Row2: integer; AMinHeight: integer = 0; AMaxHeight: integer = MAXINT): boolean;
Lars Arvidsson, Axolot Data
d3nton
Posts: 133
Joined: Thu Oct 25, 2012 9:48 am

Re: Maximum column width

Post by d3nton »

That are great news. Thank you very much.
I will test it.

best regards d3nton
Post Reply