Thanks for your reply! Below is the code that generates the error, if the user selects not to include a graph in the excel file (i.e. $graph==0) the error does not appear. I guess that means that it has to be the add_chart_ext command that generates the error

if ($graph==1) { #Write values for run chart $hidden_worksheet->write(0,$stab_column_end+1,"Time"); $hidden_worksheet->write_col(1,$stab_column_end+1,\@time_data) +; $hidden_worksheet->write(0,$stab_column_end+2,"Speed 1"); $hidden_worksheet->write_col(1,$stab_column_end+2,\@speed_1_da +ta); $hidden_worksheet->write(0,$stab_column_end+3,"Speed 2"); $hidden_worksheet->write_col(1,$stab_column_end+3,\@speed_2_da +ta); $hidden_worksheet->write(0,$stab_column_end+4,"Speed 3"); $hidden_worksheet->write_col(1,$stab_column_end+4,\@Speed_3_da +ta); #Add run chart my $run_chart = $workbook->add_chart_ext('.\charts\run_chart.b +in',"Step response run"); $worksheet->store_formula('=Hidden data sheet!A1'); }

There's alot more code generating a bunch information in the excel sheet before this snippet is executed, I don't know if that could affect anything. Furtheron, I have ensured that I have the bin-file run_chart at the indicated path.

Is there anything I'm doing wrong here?

Thank you in advance!


In reply to Re^2: add_chart_ext does not work when compressed by samuelalfred
in thread add_chart_ext does not work when compressed by samuelalfred

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.