Need a special offer?Find out if your project fits.
+

why when export to pdf the number of page duplicate and the content?

Answered
mostafa asked on December 2, 2020

hello I want single page to fit the content 

5 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster December 3, 2020

Hi Mostafa,
 
Thank you for writing to us.
 
If we understand your situation correctly, it seems to us you are talking about the grid columns being split into multiple pages when exporting to PDF.
 
If this is the case, please note that the content is split into multiple pages on purpose. When many columns are present in the grid, the data would be unreadable. If you want to export all data on one page, we suggest setting a larger page format (e.g., A1) or using export to HTML.
 
Nevertheless, you are free to implement your own exporting handler to achieve the behavior that suits you best. Here is a forum thread that we think might help: https://www.flexmonster.com/question/how-to-export-all-gird-data-in-a-single-page-2/
 
Please let us know if this helps.
 
Regards,
Mykhailo

Public
mostafa December 3, 2020

Thank you Meykhailo for your responding.
the issue is the content duplicate the same content not split it, also the number of page always 6 or 7 page.
 this is my snip code:

 var params = {
        filename: `${refObject.report.title}`,
        header:"##CURRENT-DATE##",
        footer:`<h1><strong>Metadata</strong></h1><br/>${refObject.pdfMetadata.toString()}`,
        pageOrientation: 'landscape'
    };
    this.pivot.exportTo('pdf', params);
Beast regards.
mostafa.

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster December 4, 2020

Hi Mostafa,
 
Thank you for providing further details on your issue.
 
We haven't managed to reproduce the described behavior on our side so far – do you think you could send us a sample where this is reproducible? In case sharing your whole code is not an option, seeing the `refObject` would also help.
 
Looking forward to your response.
 
Kind regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster December 14, 2020

Hi Mostafa,
 
Hope you're doing well!
 
Just checking in to ask if you've had a chance to look through our previous response. Is the initial question still relevant?
 
Please let us know your thoughts.
 
Regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster December 21, 2020

Hi Mostafa,
 
How are you?
 
We were wondering if you've received our previous message. Is there still anything we can help you with?
 
We would be happy to hear from you.
 
Kind regards,
Mykhailo

Please login or Register to Submit Answer