cocl04 has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to write to excel from a query using the below logic and format each column uniquely?
I know you can set a column like so…I have tried the set_column before the write_col and after. The write_col function seems to always overrides it.foreach my $stmt (@{$ary_ref}) { $worksheet->write_col(15,0,$ary_ref,$format); last; }
$worksheet->set_column('J:J',19.57,$format);
Basically, my code takes three different queries and writes to excel using the write_col function to write the data in three different locations on one worksheet. I want to handle the formatting of each section independently. I can format the block with a general format during the write_col. But I can't rap a grid around one block and format individual columns with dollar sign, percent sign, colors, etc. Any help will be greatly appreciated...$worksheet->set_column('J15:J300',19.57,$format);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Formatting Excel blocks from query load
by tilly (Archbishop) on Apr 02, 2009 at 05:34 UTC | |
|
Re: Formatting Excel blocks from query load
by flummoxer (Initiate) on Apr 02, 2009 at 07:11 UTC | |
by cocl04 (Sexton) on Apr 02, 2009 at 19:53 UTC |