GridView/ExportMethods

12 posts, 0 answers
  1. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 24 Jun 2010 Link to this post

    Hello,

    i looked at the GridView/Export/ExportMethods Demo.
    I used Export to PDF to create a pdf-file.

    The created pdf-file looks mostly correct, but there are 2 errors.

    Companyname:
    1. GROSELLA-Restaurant not correctly exported. The name is written over the next column instead it should be wrapped to the second line.
    2. LILA-Supermercado. Same error as no. 1

    Kind Regards,

    Ramius
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 30 Jun 2010 Link to this post

    Hello Ramius,

    Thank you for writing.

    ExportToPDF is rendering an XHTML table, which is converted to the PDF format afterward. Unfortunately we do not support "word-break" to allow cut and shift a word in a single cell. Currently the only way to overcome this limitation is to change the column width. We will do that in our example for the official release.

    Do not hesitate to contact me again if you have any other questions.

    Sincerely yours,
    Martin Vasilev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 30 Jun 2010 Link to this post

    Hello Martin,

    thank you for your answer.

    To change the column width is ok as a workaround but it's not a good solution. The problem depends on the data in the grid and it may occur in more than one column.

    I hope you will find a better solution for the problem.

    Kind Regards,

    Ramius
  5. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 05 Jul 2010 Link to this post

    Hello Ramius,

    Thank you for getting back to me.

    Indeed supporting word-break will be a better solution and we will investigate this further to add it in some of the next releases. However, since our conversion library does not support it out-of-the-box I cannot guarantee we will include that feature in the upcoming Q2 2010 release.  Once again thank you for your feedback. Your Telerik points have been updated.

    Best wishes,
    Martin Vasilev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 06 Jul 2010 Link to this post

    Hello

    How about an option to scale the font so that all cells display the same on a page as in the grid.
    Content that is to large (epecially headers) should print an ellipsis.
    Under no circumstance should content of one cell print over another, that does just not look professional.

    I played around with the PDF Export a little bit, and so far I would not include that into my application.
    Maybe a better solution would be to include Print support in the Grid similar to Excel (definition of print ranges etc.) And let the user
    print to PDF if she desires.

    Regards
    Erwin
  7. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 10 Jul 2010 Link to this post

    Hello erwin,

    Thank you for the feedback.

    In the official release we will include a lot more options for ExportToPDF. Still, overlapping cannot be completely avoided if the column width is smaller than the word length, because as I have already said, our PDF library does not support word-break. However, there will be scale settings, which will allow you to set up the pdf in a way that there will be no overlap in the specific situations.

    Kind regards,
    Martin Vasilev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  8. Imran
    Imran avatar
    13 posts
    Member since:
    Jun 2010

    Posted 26 Jul 2010 Link to this post

    The Q2/2010 Winforms documentation is incomplete.
    I can not find out the ExportToPDF object anywhere in the documentation.
    Where is the documentation of this library ?????

  9. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 02 Aug 2010 Link to this post

    Hi Imran,

    Thank you for writing.

    We had a small technical issue which prevented us from including the Export To PDF article in our desktop documentation. However, you can find it uploaded in our online documentation:
    http://www.telerik.com/help/winforms/grid-export_to_pdf.html

    Greetings,
    Nikolay
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  10. Daniel
    Daniel avatar
    1 posts
    Member since:
    Jul 2008

    Posted 04 Nov 2010 Link to this post

    I have a grid view that contains rows with different font families... is there any way to get the PDF to crate using the individual row/cell fonts?

    Thanks!
  11. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 10 Nov 2010 Link to this post

    Hi Daniel,

    Thank you for writing.

    You can try handling the HTMLCellFormatting event of the ExportToPDF feature to specify the settings for a particular cell:
    void pdfExporter_HTMLCellFormatting(object sender, HTMLCellFormattingEventArgs e) 
     
         if (e.GridColumnIndex == 3) 
         
             e.HTMLCellElement.Styles.Remove("font-family"); 
             e.HTMLCellElement.Styles.Add("font-family", "Arial");    
         
          
     }

    I hope this helps. Let me know if you have any other questions.

    Greetings,
    Martin Vasilev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  12. KUMARAN
    KUMARAN avatar
    28 posts
    Member since:
    May 2014

    Posted 18 Apr 2015 in reply to Martin Vasilev Link to this post

    I tried this for change font size..but no working as i thought.

     

    e.HTMLCellElement.Styles.Add("font-size", "22")

  13. Todor Vyagov
    Admin
    Todor Vyagov avatar
    31 posts

    Posted 20 Apr 2015 Link to this post

    Hello,

    Thank you for writing.

    To format the font size you need to assign a proper value. "22" is not valid value when assigned to the font-size HTML attribute and that is why it is not applied. Possible values are "22pt", "22px", "22%" etc.
    e.HTMLCellElement.Styles.Add("font-size", "22pt");

    I hope this information helps.
     
    Regards,
    Todor Vyagov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready