First Look: RadGrid 5 PDF Export

Posted by: the telerik blogs, on 17 Sep 2007 | View original | Bookmarked: 0 time(s)

probably know that one of the biggest new features in RadGrid 5.0 is support for export to PDF. For quite some time, RadGrid has supported direct export to Microsoft Word and Excel formats, but the addition of PDF export elevates the Grid's exporting capabilities to unprecedented levels. Using the new export feature couldn't be easier. As with previous export formats, all that is required is a call to a single simple RadGrid method:

  • FileName: change the file name of the exported file
  • ExportOnlyData: indicates if links and other basic HTML will be preserved on export (CSS styling will not be exported)
  • PDF Specific Settings:
    • Author: sets PDF metadata author value
    • Creator: sets PDF metadata creator value
    • PaperSize: sets PDF paper size
    • PageTitle: sets PDF page title (rendered on top of page)
    • Title: sets PDF metadata title value
    • Keywords: sets PDF metadata keyword value
    • AllowPrinting/Add/Copy/Modify: indicates if users have permission to print/add/copy/modify exported PDF

There are more settings available for controlling RadGrid exports, but the basic point is that you have a fair amount of control over your exported documents. You don't have total control, though, so don't expect RadGrid to provide the same level of formatting that you can find in Telerik Reporting. Exporting data to PDF from RadGrid will not preserve the Grid's skin. Data will be rendered without any of the CSS styling you see in the browser and will use only the default font settings. You cannot control the PDF's font size, color, face, or other formatting settings. You essentially get to set the page size, margins, and metadata and then let RadGrid do the rest. For more advanced exporting, you'll need to check out Telerik Reporting.

Still, if you've been dying to offer PDF export to your users for RadGrid-based data, this is an amazing feature. It works without any trouble right out of the box and doesn't require any special coding or web.config changes. This should be a great feature for anyone looking for a "poor man's" reporting solution or the flexibility to export data in a universally readable format.

For comparison's sake, here's how RadGrid 5.0 exporting compares to other grid products on the market:

*Supports RTF export

As you can see, the new PDF and CSV export formats in Q2 make RadGrid the most flexible ASP.NET grid for exporting available. Check out RadGrid 5.0 for ASP.NET in Q2 2007 and have fun with the new PDF export!

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 3884 | Hits: 69

Similar Posts

  • Export Word to PDF docs compliant to PDF/A-1b via Aspose.Words more
  • Custom Toolbar for the Web ReportViewer more
  • Multi-Value Key for a Dictionary more
  • Flatten your WSDL with this Custom ServiceHost for WCF more
  • SQL SERVER - Few Useful DateTime Functions to Find Specific Dates more
  • Export and Printing RadGridView using Telerik Reporting more
  • Tip of the Day: Tutorial Image Distortion and what You and I can Do more
  • Entity Data Model - What to do when a changes is made in the database more
  • How To: Format RadGrid PDFs more
  • MSIL: Part 4 more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD