Adding filename breaks Multi Page Export

4 posts, 0 answers
  1. Ken
    Ken avatar
    23 posts
    Member since:
    Oct 2012

    Posted 29 Jul 2015 Link to this post

    Adding

    cem.set_pdfSettings({ fileName: "xxxx.pdf" });

    To the export function stops the multi page only the first page is exported 

     

     

  2. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 30 Jul 2015 Link to this post

    Hi Ken,

    When you are using .set_pdfSettings() client-side method, you actually override the PDF settings of your RadClientExportManager. So if you set only fileName, the pageBreakSelector will no longer be in the settings of the RadClientExportManager. Here you may find a screen-shot, showing this.

    In your case, in order the multi-page functionality to work, you must use the following code:
    cem.set_pdfSettings({fileName: "PDF-Export", pageBreakSelector: ".pageBreak"})

    where .pageBreak is the class of the element on which you want to break the page.

    You may find more information on Client-side programming in the following help article:
    Hope this will be helpful.

    Regards,
    Aneliya Petkova
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ken
    Ken avatar
    23 posts
    Member since:
    Oct 2012

    Posted 30 Jul 2015 in reply to Aneliya Petkova Link to this post

    Ok I will try that. But then this statement does not apply....

    important
     It is not required to change all available properties. For example in your pdfSettings object you can set only the filename 

     

  5. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 31 Jul 2015 Link to this post

    Hi Ken,

    Yes, that statement doesn't apply in this case, because pageBreakSelector is not a standard setting and it doesn't have a default value. So when you are adding PDF settings to the RadClientExportManager, if you don't specify for example "fileName", the file's name will be the default one. But if you don't specify the setting like pageBreakSelector, the page will not be exported in more than one page, because this is not set by default.

    Regards,
    Aneliya Petkova
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top