ag4ve has asked for the wisdom of the Perl Monks concerning the following question:
has anyone figured how to write dynamic col widths with Spreadsheet::WriteExcel? i can do set_column well enough to set a default width. however, i haven't found a good way to sed widths based on the longest string i put into the columns.
i can get the max length of a string, but setting the width based on this doesn't seem to work properly (ie, it isn't wide enough). i saw someone recommend Excel::Template::Element::Cell but cpan seems sparse for this and i can't figure out how to use it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WriteExcel dynamic width
by jmcnamara (Monsignor) on Jan 10, 2011 at 11:10 UTC | |
by ag4ve (Monk) on Jan 11, 2011 at 04:03 UTC | |
|
Re: WriteExcel dynamic width
by marto (Cardinal) on Jan 10, 2011 at 11:02 UTC |