I'm having difficulty inserting an Aspose.Chart, created in memory, into my PowerPoint presentation.
Dim oMemoryStream As New MemoryStream
' - Generate Chart - '
Dim oChart As New Aspose.Chart.Chart
Dim oSeries As New Aspose.Chart.ASeries
oSeries .ChartType = Aspose.Chart.ChartType.Line
For Each oDataRow In oDataSet.Tables(0).Rows
oSeries .DataPoints.Add(1, 1)
Next
oChart.NSeries.Add(oSeries)
oChart.Save(oMemoryStream, System.Drawing.Imaging.ImageFormat.Bmp)
oSlide.Shapes.AddOleObjectFrame(280, 1000, 5200, 2000, "Chart", oMemoryStream.ToArray)
The above code will insert the OLE object and give me the text "Object Changed" but, when I click the object to update it, it gives me the following error message:
The server application, source file, or item can't be found, or returned an unknown error. You may need to reinstall the server application.
I have successfully saved the chart to disk but I'd rather do it by memory stream so I don't have to change permissions on the server. Any suggestions?