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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Printing an exported diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

147015 Aug 28,2019 06:24 PM UTC Sep 3,2019 01:42 PM UTC ASP.NET MVC - EJ 2 3
loading
Tags: Diagram
Chad Carey
Asked On August 28, 2019 06:27 PM UTC

Is there anyway to get this to print a diagram across many pages without scaling either using the print button OR by using the JPG that is exported? Printing is important but it seems like it is not possible to actually take a larger than 1 piece of paper diagram and get it across multiple pages.

What are the options to do this? Is this even possible? Printing org charts for us is extremely important.

Also, print and export seem to ignore the diagrams zoom state. how do you fix that?

Shyam G [Syncfusion]
Replied On August 29, 2019 07:09 AM UTC

Hi Chad, 
 
Query 
Response 
Is there anyway to get this to print a diagram across many pages without scaling either using the print button OR by using the JPG that is exported? Printing is important but it seems like it is not possible to actually take a larger than 1 piece of paper diagram and get it across multiple pages. 
 
What are the options to do this? Is this even possible? Printing org charts for us is extremely important. 
 
Yes, you can print or export diagram to multiple pages. You should also set the width and height of pageSettings and set MultiplePage as true. Please refer to a code example, help documentation and online sample. 
 
Code example: 
// initialize diagram with pageSettings 
  
 @(Html.EJS().Diagram("container").Width("100%").Height("580px").Created("fitToPage") 
    .PageSettings(s => s.Width(550).Height(500).MultiplePage(true)).Render() 
            ) 
 
   <script> 
function exportDiagram(args) { 
            var diagram = document.getElementById("container").ej2_instances[0]; 
            var exportOptions = {};  
            exportOptions.mode = 'Download'; 
            exportOptions.region = 'PageSettings'; 
            exportOptions.multiplePage =’true’; 
            exportOptions.fileName = 'Export';  
            diagram.exportDiagram(exportOptions); 
        } 
        function printDiagram(args) { 
             if (args.item.text === 'Print') { 
                var diagram = document.getElementById("container").ej2_instances[0]; 
                var printOptions = {}; 
                printOptions.mode = 'Data'; 
                printOptions.region = 'PageSettings'; 
                printOptions.multiplePage = ’true’;  
                diagram.print(printOptions); 
            } 
        } 
</script> 
 
 
 
 
 
Also, print and export seem to ignore the diagrams zoom state. how do you fix that?  
The diagram zooming is not considered during printing and exporting. It is a default behavior of our diagram control. 
 
 
Regards, 
Shyam G 


Chad Carey
Replied On August 29, 2019 12:49 PM UTC

Thank you. Is there a way to get the print to fill out an entire page for each piece it prints? The margin thing doesn't do that it looks like it is based off the page setting width and height. So if it goes across multiple pages how do you get rid of the white space on the edges of the pages? with large diagrams (we are using org charts) the export does not seem to split across multiple images.

it also likes to add lots of blank pages.

Naganathan Ganesh Babu [Syncfusion]
Replied On September 3, 2019 01:42 PM UTC

Hi Chad, 
 
On further analysis in our diagram control, the margin value is not considered when we trying to print the diagram in multiple page. So we have considered it as an issue of “Need to print the diagram content alone in multiple when margin set as zero” and the patch for the fix will be available on 24th sep, 2019. 
 
 
Regards, 
 
Naganathan K 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.

Please sign in to access our forum

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon