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

Exporting reports

3 Answers 6 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 11 Jul 2016, 03:17 PM

Is it possible to export a report to some format which can be handled by WPF RichTextBox?

Could you give me an example for exporting report in to HTML format ( what must the delgate function do?)

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 11 Jul 2016, 03:58 PM
Hello Alexander,

The supported rendering formats are available here. You can test using RTF and DOCX formats, where each has additional settings to adjust the rendering mechanism e.g. UseMetafile (for DOCX) and RenderingMode (for RTF).

Details how to export programmatically in the available formats - Exporting Report Programmatically.
Details how to pass settings to the rendering mechanisms - Set rendering parameters programmatically.


Note that the HTML format is a multipage format, where images are rendered as external files referenced by the HTML documents. Thus you may need to post-process the result to get HTML suitable for the UI for WPF RadRichTextBox control.

Regards,
Stef
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
0
Alexander
Top achievements
Rank 1
answered on 12 Jul 2016, 01:02 PM

it seems the right way. but i loose all my graphic. It is in the docx file, but both MS Word and RichTextBox doesn't show  any of them.

i ve tried out all setting with/without emf files and rtf formating.

The graphics are in docx  archive so it seems the its a formating problems.

0
Stef
Telerik team
answered on 13 Jul 2016, 02:50 PM
Hi Alexander,

You can use the PdfViewer and load reports exported as PDF files. There are also PdfProcessing libraries allowing you to further modify the documents, if needed.
We will appreciate if you elaborate on the scenario and the need to load exported documents in another editor/viewer.

About the RadRichTextBox, the produced DOCX files use elements not supported by the control. Feel free to vote and follow the logged feature request - Support import from DOCX of image elements in a pict (VML Object) element.

Regards,
Stef
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Alexander
Top achievements
Rank 1
Answers by
Stef
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or