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

Styling exported pdf programmatically

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 02 Feb 2017, 06:43 PM

Hi

I am trying to style the generated table using the 'ApplyStylesToPdfExport' example, and all is working with fonts, and alignment, but I haven't found the way to set cell padding. I tried using cell.style("cellpadding")  = "5px" and, a few variants, but I can't make it work.  What is the right way to do this?

I am probably being dumb...

Thanks a lot

Clive

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 07 Feb 2017, 06:50 AM
Hi Clive,

For applying styles during the PDF exporting, you can check the following resources:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/export-formats/pdf-export#appearance
http://www.telerik.com/forums/export-radgrid-to-pdf---formatting-header-columns

If the issue remains, you can send us sample screenshots or video demonstrating the desired appearance and we can prepare a corresponding sample.

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or