ActiveReports 13
RTF Control
ActiveReports 13 > ActiveReports User Guide > Samples and Walkthroughs > Samples > Advanced > Page and RDL Reports > RTF Control

This sample shows using a custom control, RichTextBox, to preview RTF directly in Page/RDL reports without need for conversion to HTML. 

Just drag and drop the RichTextBox control to the design area, press F2 or Enter or double click the control to enable edit mode, and input the RTF.

TestDesignerPro

TestDesignerPro


TestViewer

TestViewer

Sample Location

Visual Basic.NET

<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\Advanced\PageAndRDL\RtfControl\VB.NET

C#

<User Folder>\Documents\GrapeCity Samples\ActiveReports 13\Advanced\PageAndRDL\RtfControl\C#

Details

To run the sample, set TestViewer or TestDesignerPro as startup project.

Note that this sample is implemented based on WinForms RichTextBox control that provides display features similar to WordPad RTF, such as:

The following hotkeys and shortcuts are supported in edit mode: