This is a migrated thread and some comments may be shown as answers.

Adding filename breaks Multi Page Export

3 Answers 20 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 29 Jul 2015, 05:05 PM

Adding

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

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

 

 

3 Answers, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 30 Jul 2015, 10:25 AM
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
0
Ken
Top achievements
Rank 1
answered on 30 Jul 2015, 06:46 PM

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 

 

0
Aneliya Petkova
Telerik team
answered on 31 Jul 2015, 08:08 AM
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
Tags
ClientExportManager
Asked by
Ken
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
Ken
Top achievements
Rank 1
Share this question
or