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

Exporting to Excel/CSV and PDF

3 Answers 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 31 Oct 2011, 10:15 AM
Hi!

I have a question that I'm not sure if this is the place where it should be asked... 

We are developing a Silverlight app as well as an WPF app, and we need to create Excel and PDF reports from code. Is there any component or control that Telerik may have to do this (we are already using RadControls for WPF/SL, but as far as we have seen no support for this aside from GridView export-to options)? 

By now, we are exporting to CSVs and creating PDFs with a free library which support is already gone (no development since 2009, it's called MigraDoc/PDFSharp). I've seen some commercial libraries that support this functionality, but I was wondering whether Telerik has any of these. 

Thank you in advance!!

Pablo.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 31 Oct 2011, 05:13 PM
Hello Pablo,

With the Q2 2011 version of the RadControls, you may use the RadDocument for exporting to PDF. This is possible with the RadRichTextBox. You could review the online demo for an example on how you could export to a PDF.

The exporting to Excel and CSV is currently done by the Export method of the RadGridView.

I hope that this is helpful.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Pablo
Top achievements
Rank 1
answered on 04 Nov 2011, 11:31 AM
Hello Didie, 

sorry for not answering before. 

I'll have a look at the PDF sample.

Regarding Excel... we'd like to be able to build a complex Excel file and be able to add Excel charts, images and and custom formatting. Export in GridView just throws the data to an Excel file, but doesn't allow any other manipulation. So should we look for other components that allow us to do this? We really want to avoid using the Excel-automation option.

Thank you very much. 

Pablo.
0
Dimitrina
Telerik team
answered on 04 Nov 2011, 04:29 PM
Hi Pablo,

 As the formats that the RadGridView uses to export to Excel are HTML and ExcelML, this would not be possible. These formats do not support the embedding of such elements.

For more advanced needs, I will suggest you to check the Telerik Reporting.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Pablo
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Pablo
Top achievements
Rank 1
Share this question
or