We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

this.diagram1.ExportDiagramAsImage parameter is not valid


I 've been trying to export a diagram as an image but I get the next error: "The parameter is not valid".

Any idea? I think that the diagram have some error, but it is impossible for me to identify the problem.

Could you help me?

Thanks in advanced.




4 Replies

BC Blanca Calderon March 27, 2013 09:29 AM UTC

Hi again,

The problem is with the attached .edd file. When I try to convert the .edd file in a .jpg file I get the error "parameter is not valid".

I send you the .edd file that I'm trying to convert in .jpg.

I would be very grateful for any help you could might be able to give me.

Best regards



AA Amsath Ali M Syncfusion Team April 5, 2013 10:26 AM UTC

Hi Blanca,


Thanks for your interest in Syncfusion products.


We suggest you to set the ‘ClipModelBounds’ property of the ExportDiagramAsImage method to ‘true’ to resolve the reported issue. Please refer the below code snippet to achieve your requirement.


Here is the code:


Image img = diagram1.ExportDiagramAsImage(true);

            img.Save(@"..//..//Diagram.png", ImageFormat.Png);

Here is the sample:



Please let us know if you have any queries.



Amsath Ali. M

BC Blanca Calderon April 12, 2013 07:23 AM UTC

It works properly, thanks!!

AA Amsath Ali M Syncfusion Team April 15, 2013 04:43 AM UTC

Hi Blanca,


Thanks for your update.


We are happy to hear that the issue has been resolved.

Please let us know if you require any further assistance. We would be happy to help you out.



Amsath Ali. M

Live Chat Icon For mobile
Up arrow icon