Re: Spread***::WriteExcel format width
- From: ansok@xxxxxxxxxxxxxxxxxx (Gary E. Ansok)
- Date: Fri, 20 May 2005 19:26:24 +0000 (UTC)
In article <1116615850.751089.186030@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
David Lao <David.C.Lao@xxxxxxxxx> wrote:
>Hi,
>
>I tried to format the width of the columns but the value did not take.
>When I open the perl.xls file, I saw the columns default to 10 for the
>width. Do you know why ?
>
>Here is the snippet of the code:
>
> $work***->set_column($row, $col, 30);
Check the documentation for Spread***::WriteExcel. The set_column method
looks like this:
set_column($first_col, $last_col, $width, $format, $hidden, $level)
It doesn't take a row number. I suspect you want
$work***->set_column($col, $col, 30);
- Gary Ansok
.
- Follow-Ups:
- Re: Spread***::WriteExcel format width
- From: David Lao
- Re: Spread***::WriteExcel format width
- References:
- Spread***::WriteExcel format width
- From: David Lao
- Spread***::WriteExcel format width
- Prev by Date: Spread***::WriteExcel format width
- Next by Date: Re: Spread***::WriteExcel format width
- Previous by thread: Spread***::WriteExcel format width
- Next by thread: Re: Spread***::WriteExcel format width
- Index(es):