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

Export to PDF - PageTitle Style

5 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 24 Mar 2009, 08:57 PM
Hi,  possibly a relatively simple one, but how do you style the PageTitle when exporting to a PDF?  I really only want to change the font to Arial to match the rest of my document.

And while we're on this subject - any thoughts on how to access the main table element?  I would like to add a style attribute to it to control the borders.

P.S. I have trawled the examples and forums and worked out how to style everything else - just these two things seem to be missing.

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 25 Mar 2009, 07:31 AM
Hi Tony,

One suggestion will be to set the Title of the exported document in the CommandItemTemplate of RadGrid.

ASPX:
 
<MasterTableView  Font-Names="Arial"     CommandItemDisplay="Top" DataSourceID="SqlDataSource1"
               <CommandItemTemplate> 
                  Custom Title  
               </CommandItemTemplate> 

Shinu
0
Matt
Top achievements
Rank 2
answered on 25 Mar 2009, 01:48 PM
Thanks for the suggestion Shinu, but it doesn't quite quite fit the bill.

Your method does render in Arial but inside a table cell at the top left of the grid instead of as a page title (centered and above the grid).  Also, I had to omit Font-Names="Arial" as it caused the export to behave in a way that seemed to export a corrupt file.

Any other suggestions?
0
Daniel
Telerik team
answered on 27 Mar 2009, 04:28 PM
Hello Tony,

I'm afraid It's not possible to apply styles to the PDF caption as it is being exported as a html page title which doesn't support styles.

I also want to notify you that the requested functionality is added to our product backlog for future implementation.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Adam Hubble
Top achievements
Rank 1
answered on 01 Jul 2009, 10:33 AM
Is this still the case or is it now possible to style page title?
0
Daniel
Telerik team
answered on 01 Jul 2009, 11:08 AM
Hello Matt,

The feature request is still in our product backlog but it isn't implemented yet due to breaking change concerns. Our developers will investigate this case in the next few weeks but I am not able to commit to an exact estimate for the feature implementation at this point.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Matt
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 1
Matt
Top achievements
Rank 2
Daniel
Telerik team
Adam Hubble
Top achievements
Rank 1
Share this question
or