in reply to Re: perl help
in thread perl help
This is what i tried... here i am opening an already existing excel sheet (MyExcel.xls) going to its first sheet (Firstsheet) and then adding a chart to it.... error: Can't call method "add_chart" on an undefined value at charts4.ps line 20 my perl version : This is perl 5, version 22, subversion 0 (v5.22.0) built for aix I am expecting a chart displayed with the existing data in the existing excel.. i know charts work when we use my $workbook = Spreadsheet::WriteExcel->new( 'chart_column.xls' );... but i dont want to create a new excel sheet.. i want - open my existing excelsheet and the add chart to this already existing excel sheet.. Thanks in advance!use Spreadsheet::ParseExcel; use Spreadsheet::ParseExcel::SaveParser; use Spreadsheet::WriteExcel; # Open an existing file with SaveParser my $parser = Spreadsheet::ParseExcel::SaveParser->new(); my $template = $parser->Parse('MyExcel.xls'); my $worksheet = $template->worksheet('Firstsheet'); my $chart = $template->add_chart( type => 'line' ); $chart->add_series( categories => '=URV!$A$17:$A$442', values => '=URV!$D$17:$D$442', name => 'pended graph', );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl help
by ww (Archbishop) on Dec 08, 2015 at 15:23 UTC | |
by Anonymous Monk on Dec 09, 2015 at 14:48 UTC | |
|
Re^3: perl help
by Corion (Patriarch) on Dec 09, 2015 at 14:53 UTC | |
by Anonymous Monk on Dec 11, 2015 at 17:59 UTC |