RadClientExportManager & Margins

0 Answers 40 Views
ClientExportManager
Adam
Top achievements
Rank 1
Adam asked on 18 Sep 2023, 12:28 PM

Greetings all,

I have just discovered the margin properties in the PDFSettings sub-category of the RadClientExportManager.

Using the left & right margins, I could address some of my concerns as to how close the edge of the export comes to the edge of the displayed area, I cannot seem to make the bottom margin value work. 

Across my exports, I am using:

        RadClientExportManager1.PdfSettings.MarginLeft = "15"
        RadClientExportManager1.PdfSettings.MarginRight = "15"
        RadClientExportManager1.PdfSettings.MarginBottom = "30"

Can anyone let me know if there is a problem in setting the bottom margin, or any of the margins? Or even how the inner workings of the control handles blank space or padding around the indicated div?

Thanks in advance! 

Doncho
Telerik team
commented on 21 Sep 2023, 08:59 AM

Hi Adam,

Can you please try setting the margin on the client side to numeric values, prior to exporting the pdf and see if this will produce the desired result:

var exportManager = $find("<%= RadClientExportManager1.ClientID %>");
exportManager.get_pdfSettings().margin = { left: 15, bottom: 30, right: 15 };

exportManager.exportPDF("#elementForExporting")

 

No answers yet. Maybe you can help?

Tags
ClientExportManager
Asked by
Adam
Top achievements
Rank 1
Share this question
or