When I generate a chart with a polynomial trendline, if the order of the trendline is set to 2, the exported pptx fails to open. If I increase the order of the trendline to 3, the exported pptx works as expected.
Based on code from here Trend Line|Aspose.Slides Documentation
I have this sample code running in a console application
//Creating empty presentation//Creating empty presentation
Presentation pres = new Presentation();<span style="color:#57a64a;">//Creating a clustered column chart</span> <span style="color:#b8d7a3;">IChart</span> chart <span style="color:#b4b4b4;">=</span> pres<span style="color:#b4b4b4;">.</span>Slides[<span style="color:#b5cea8;">0</span>]<span style="color:#b4b4b4;">.</span>Shapes<span style="color:#b4b4b4;">.</span>AddChart(<span style="color:#b8d7a3;">ChartType</span><span style="color:#b4b4b4;">.</span>ClusteredColumn, <span style="color:#b5cea8;">20</span>, <span style="color:#b5cea8;">20</span>, <span style="color:#b5cea8;">500</span>, <span style="color:#b5cea8;">400</span>); <span style="color:#57a64a;">//Adding Polynomial trend line for chart series 3</span> <span style="color:#b8d7a3;">ITrendline</span> trendlinePolynomial <span style="color:#b4b4b4;">=</span> chart<span style="color:#b4b4b4;">.</span>ChartData<span style="color:#b4b4b4;">.</span>Series[<span style="color:#b5cea8;">2</span>]<span style="color:#b4b4b4;">.</span>TrendLines<span style="color:#b4b4b4;">.</span>Add(<span style="color:#b8d7a3;">TrendlineType</span><span style="color:#b4b4b4;">.</span>Polynomial); trendlinePolynomial<span style="color:#b4b4b4;">.</span>TrendlineType <span style="color:#b4b4b4;">=</span> <span style="color:#b8d7a3;">TrendlineType</span><span style="color:#b4b4b4;">.</span>Polynomial; trendlinePolynomial<span style="color:#b4b4b4;">.</span>Forward <span style="color:#b4b4b4;">=</span> <span style="color:#b5cea8;">1</span>; trendlinePolynomial<span style="color:#b4b4b4;">.</span>Order <span style="color:#b4b4b4;">=</span> <span style="color:#b5cea8;">3</span>; <span style="color:#57a64a;">// <--- if this is set to 2, the exported chart fails to load.</span> trendlinePolynomial<span style="color:#b4b4b4;">.</span>DisplayRSquaredValue <span style="color:#b4b4b4;">=</span> <span style="color:#569cd6;">true</span>; trendlinePolynomial<span style="color:#b4b4b4;">.</span>DisplayEquation <span style="color:#b4b4b4;">=</span> <span style="color:#569cd6;">true</span>; <span style="color:#57a64a;">//Saving presentation</span> pres<span style="color:#b4b4b4;">.</span>Save(<span style="color:#d69d85;">"ChartTrendLines.pptx"</span>, <span style="color:#b8d7a3;">SaveFormat</span><span style="color:#b4b4b4;">.</span>Pptx);</pre></div><div><br></div><div>If the trendlinePolynomial.Order property is set to 2, the ChartTrendLines.pptx fails to open. </div><div>Is this the expected behaviour, or is it a bug?</div><div>If it is a bug, are there workarounds available, or an expected timeframe for a fix? (Though I'm not holding my breath on that last one.)</div><div><br></div><div> N</div><div><br></div><div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><br></div></blockquote></div><div><br></div>