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 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,
Hi Imran,
Any update on this issue ?
Thanks
Hi Vinay,
The issues you have found earlier (filed as DIAGRAMNET-50300) have been fixed in Aspose.Diagram for .NET 5.5.0.
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.