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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

this.diagram1.ExportDiagramAsImage parameter is not valid

Thread ID:





107965 Mar 26,2013 11:58 AM UTC Apr 15,2013 04:43 AM UTC WinForms 4
Tags: Diagram
Blanca Calderon
Asked On March 26, 2013 11:58 AM UTC


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.




Blanca Calderon
Replied On 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



Amsath Ali M [Syncfusion]
Replied On 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

Blanca Calderon
Replied On April 12, 2013 07:23 AM UTC

It works properly, thanks!!

Amsath Ali M [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon