Categories > OpenTBS with DOCX >

Open TBS With MS Word & Chart

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Chris
Date: 2012-03-08
Time: 23:10

Open TBS With MS Word & Chart

I am having difficulty following the chart example in the Open TBS example. I am trying to customise a chart but I keep getting server errors and I don't understand why. The code I have is...
$ChartNameOrNum = 'chart1';
$SeriesNameOrNum = 2;
$NewValues = array( array('Category A','Category B','Category C','Category D'), array(3, 1.1, 4.0, 3.3) );
$NewLegend = "New series 2";
$TBS->PlugIn(OPENTBS_CHART, $ChartNameOrNum, $SeriesNameOrNum, $NewValues, $NewLegend);
But for some reason using that code returns a server error 500.
By: Skrol29
Date: 2012-03-09
Time: 09:40

Re: Open TBS With MS Word & Chart

Hi Chris,

Error 500 is an internal error with no more description.
Is server configured to raise this error on nay PHP error ? Or do you usually display PHP errors/warnings ?