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.
Unfortunately, activation email could not send to your email. Please try again.

this.diagram1.ExportDiagramAsImage parameter is not valid

Thread ID:

Created:

Updated:

Platform:

Replies:

107965 Mar 26,2013 07:58 AM Apr 15,2013 12:43 AM Windows Forms 4
loading
Tags: Diagram
Blanca Calderon
Asked On March 26, 2013 07:58 AM

Hi,

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

 

 


Blanca Calderon
Replied On March 27, 2013 05:29 AM

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

      Blanca



pantalla0_231aa087.rar

Amsath Ali M [Syncfusion]
Replied On April 5, 2013 06:26 AM

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:

[C#]

Image img = diagram1.ExportDiagramAsImage(true);

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

Here is the sample:

http://www.syncfusion.com/downloads/Support/DirectTrac/General/F1079562076916080.zip

 

Please let us know if you have any queries.

 

Regards,

Amsath Ali. M


Blanca Calderon
Replied On April 12, 2013 03:23 AM

It works properly, thanks!!


Amsath Ali M [Syncfusion]
Replied On April 15, 2013 12:43 AM

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.

 

Regards,

Amsath Ali. M


CONFIRMATION

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.

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.

;