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

JavaScript/MVC Diagram Export Options

Thread ID:

Created:

Updated:

Platform:

Replies:

130697 May 26,2017 02:54 PM UTC May 30,2017 12:03 PM UTC JavaScript 3
loading
Tags: ejDiagram
Robert Mims
Asked On May 26, 2017 02:54 PM UTC

Shyam,

This will probably come your way, but what I'm after now would be the means to export the diagram from the server side, loading the JSON configuration to feed the resultant image output. 

In examining the MVC side and DiagramProperties I see I can load the model, but there does not appear to be a method to export it to an image as is available on the client side.

Short of composing a page in memory to render the diagram and export the image or storing the exported image as metadata at runtime (tricky for me with dynamic templates), is there any way that I can export the diagram image of the report without rendering it to a live user?

Thank you.

Robert

Shyam G [Syncfusion]
Replied On May 29, 2017 12:45 PM UTC

Hi Robert, 
 
We can perform exporting only after the diagram is rendered. So currently it is not possible to export without rendering diagram in a browser. You can use third party tools such as phantomjs, nodejs to generate the image in the server side. 
 
Regards, 
Shyam G 


Robert Mims
Replied On May 29, 2017 12:56 PM UTC

Thank you, Shyam.

Pretty much what I figured.

Please consider it a feature request.

Thank you.

Robert

Shyam G [Syncfusion]
Replied On May 30, 2017 12:03 PM UTC

Hi Robert, 

We could not consider it as a feature because in MVC(server side), we usually convert object to a JSON and send it to client side for rendering it in the browser. Also we export diagram once the diagram is rendered in the browser. If you need to export diagram without rendering it in the browser, you can use third party controls phantomjs, nodejs which act as a browser to generate an image and it will not come under the diagram scope. 

Regards, 
Shyam G 


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.

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

;