Export to PDF - PageTitle Style

6 posts, 0 answers
  1. Tony
    Tony avatar
    22 posts
    Member since:
    Jun 2005

    Posted 24 Mar 2009 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Mar 2009 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tony
    Tony avatar
    22 posts
    Member since:
    Jun 2005

    Posted 25 Mar 2009 Link to this post

    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?
  5. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 27 Mar 2009 Link to this post

    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.
  6. Adam Hubble
    Adam Hubble avatar
    74 posts
    Member since:
    Jan 2008

    Posted 01 Jul 2009 Link to this post

    Is this still the case or is it now possible to style page title?
  7. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 01 Jul 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017