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

[Solved] Using PDF Functionality Without the Grid

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kencox
Top achievements
Rank 1
kencox asked on 11 Feb 2010, 01:16 AM
Hi guys,

Is there a way to create PDFs on the fly using Telerik's APIs - not necessarily from a grid but by building the layout in code?

Rather than purchase a separate PDF component, I thought I'd check if there's a way to get at the functionality within the RadGrid.

Any tips, source code, or pointers are welcome.

Thanks,

Ken

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Feb 2010, 03:29 PM
Hello Ken,

I'm afraid this is not supported out-of-the-box. There are two options:
1) Use third-party PDF engine like FO.NET - RadGrid uses a modified version of the same engine.
2) Replace the raw HTML content on PdfExporting with your own HTML code. Please note that we don't support this scenario officially.
protected void rgReportResults_PdfExporting(object source, GridPdfExportingArgs e)
{
    e.RawHTML = something...
}

Regards,
Daniel
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.
Tags
Grid
Asked by
kencox
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or