Microsoft RTf to ActiveViewer RTF

Posted by: samgwu on 14 September 2017, 6:57 pm EST

  • Posted 14 September 2017, 6:57 pm EST

    [activereports_archive]What is the best way to Convert Microsoft Rich text box content to Active viewer RTF.

    1. securing all the formatted text.
    2. Image support
    3. Table and chart support.

      Is it possible to bind MS Rtf.Document to Activeviewer RTf.???

      Please provide example in C# .

    Thanks in Advance.[/activereports_archive]

  • Posted 14 September 2017, 6:57 pm EST

    [activereports_archive]samgwu,

    I have attached a sample application which demonstrates how you can load the contents of a MS RichTextBox to ActiveReports RichTextBox and display the report in the viewer. Please check the sample and let me know if you have any doubts.

    Regards,

    Sankalp[/activereports_archive]

    2015/05/LoadRTF.zip

  • Posted 14 September 2017, 6:57 pm EST

    [activereports_archive]Sorry i forget to mention, I am using Wpf Application and MS wpf RTf don’t have direct access to RTF.

    And how to make wpf active viewer continuous scrollable . or smooth scrolling full report.

    where can i find property ViewType in wpf active report viewer. [/activereports_archive]

  • Posted 14 September 2017, 6:57 pm EST

    [activereports_archive]samgwu,

    Unlike winforms application, the richtextbox in a WPF application does not return RTF but a FlowDocument. I have attached a sample application which reads the flow document and displays it inside ActiveReports richtextbox. However please note that the returned RTF will not be same as the original one due to limitations imposed during the flowdocument conversion.

    Please check the sample and let me know if you have any doubts.

    Regards,

    Sankalp[/activereports_archive]

    2015/05/LoadRTF_WPF.zip

  • Posted 30 November 2018, 5:20 pm EST

    I am not able to get the 2015/05/LoadRTF_WPF.zip to work. I am using Visual Studio 2017 with AR 12 (Version=12.0.11689.0). I am trying to convert a FlowDocument (from the WPF Richtextbox) . In the example, it looks like the sample file being loaded is already in RTF format.

    Simple flow document

    Test case that is bigger

    Any thoughts?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels