Diagram to image conversion

Hi Team,

Do we have option to save image to some location like any folder I want ?

Tried to ask same question on same page of article but didn’t received any response.
Please help.

Thank You

Hi Vinay,

Thank you for contacting support. Yes, you can save image file to a local path. The Save method call allows passing a file name along with a complete path. Please have a look over this sample code:

Diagram diagram = new Diagram(@“c:\temp\input.vsd”);
//Save diagram as PNG
ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.PNG);
options.PageIndex = 1;
diagram.Save(@"c:\temp\Output.png", options);

Please do let us know in case of any confusion or questions.

Hi Imran,

I am facing issue in converting diagram to png image, getting blank image or corrupt image.

I am trying following code.
Diagram diagram = new Diagram(@“file.vdx”);
ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.PNG);
options.PageIndex = 0;
diagram.Save(@“D:\Output.png”, options);

VDX file is also attached.

Please provide suggestion on this issue.

Thank You

Hi Vinay,


Thank you for contacting support. We managed to replicate the said issue. We have logged this issue under ticket id DIAGRAMNET-50300 in our issue tracking system. Your post has also been linked to this issue. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience you faced.

Hi Imran,

Any update on this issue ?

Thanks

Hi Vinay,


Thank you for the inquiry. We’re sorry to share with you that the linked issue id DIAGRAMNET-50300 is pending for the analysis and not resolved yet. We have asked the responsible developer to take a look at your issue shortly. We’ll let you know once an update is available from him.

Hi Vinay,

Thank you for being patient. We have a good news for you that the issue id DIAGRAMNET-50300 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.Diagram for .NET 5.5.0. We'll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMNET-50300) have been fixed in Aspose.Diagram for .NET 5.5.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.