We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

NullReference exception in RenderToScale

The attached docx file contains a chart that can’t be rendered.

RenderToScale throws NullReferenceException. If you can’t reproduce I will send more details.

Best Regards,
Vassil
Hi Vassil,

Thanks for your inquiry. We have tested the scenario using following code example and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13140. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Document doc = new Document(MyDir + "NullRef_On_Render_Chart.docx");

Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);

using (Bitmap img = new Bitmap(100, 100))

{

using (Graphics gr = Graphics.FromImage(img))

{

shape.GetShapeRenderer().RenderToScale(gr, 0, 0, 100);

}

}

The issues you have found earlier (filed as WORDSNET-13140) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.