Exporting reports

4 posts, 0 answers
  1. Alexander
    Alexander avatar
    22 posts
    Member since:
    May 2016

    Posted 11 Jul Link to this post

    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?)

  2. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 11 Jul Link to this post

    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
  3. DevCraft banner
  4. Alexander
    Alexander avatar
    22 posts
    Member since:
    May 2016

    Posted 12 Jul Link to this post

    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.

  5. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 13 Jul Link to this post

    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
Back to Top