Export ListView Content to PDF, is it possible?

4 posts, 0 answers
  1. Henric
    Henric avatar
    11 posts
    Member since:
    Nov 2008

    Posted 09 Jun 2011 Link to this post

    As the title says, is this possible?

    I would like to have a two- or three column based layout exported to pdf, instead of the gridview look which is one item per row.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Jun 2011 Link to this post

    Hello Henric,

    One suggestion is you can use the global item template feature of RadGrid for ASP.NET AJAX to create ListView/DataList like data presentation.
    The following Demo shows how to achieve this.
    Grid / ListView/DataList View

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Henric
    Henric avatar
    11 posts
    Member since:
    Nov 2008

    Posted 10 Jun 2011 Link to this post

    Shinu,
    thanks for your effort, I've seen the example you're referring to but the problem is it does not preserve the formatting when exported to PDF.

    Right now, I'm thinking of simply using a repeater etc. to create the layout I need and then use the built in print functions in Internet Explorer, with header, footer etc. disabled under "File --> Page Setup..." This approach is possible in my case since there are only two users of this application.

    It would have been nice if Telerik somewhere in the future also would consider a solution for PDF creation like the other third party components out there ;-)


  5. Daniel
    Admin
    Daniel avatar
    4945 posts

    Posted 13 Jun 2011 Link to this post

    Hello Henric,

    RadListView does not support exporting because of the variety of possible layouts that might cause problems when generating the PDF content.
    Please excuse us for any inconvenience caused.

    Best regards,
    Daniel
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top