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

Display of RichText

9 Answers 372 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 31 Mar 2010, 04:39 PM
Hello

   I am evaluating the Reporting Component in the hopes of replacing Crystal Reports, they support only a subset of the RichText specification ( no super or sub scripts ).  So far I do not see how this is supported at all with Telerik, am I missing it somewhere?  I am using the Q1 2010 version.  I hope it is here somewhere because it appears to be such a nice product in all other ways.

Thanks,
Patrick Brown

9 Answers, 1 is accepted

Sort by
0
fruzicka
Top achievements
Rank 1
answered on 31 Mar 2010, 04:54 PM
No, RTF is not supported ...
RTF support and standalone report designer are my "most wanted" features.
0
Patrick
Top achievements
Rank 1
answered on 31 Mar 2010, 04:59 PM
Hi

   Do you have any ideas or heard talk of this being in a near future version?  Have you seen any other products that do support this?  I have been hunting quite a bit for it.  That is a complete show stopper for us right now.

Thanks,
Patrick
0
Susanna
Top achievements
Rank 1
answered on 01 Apr 2010, 09:09 AM
Hey,

just want to add that Telerik do have a "HTMLTextBox" that can be used in their reports instead of the normal textbox. I use this to be able to show simplified HTML markup in my reports. In my application (WinForm) I use Teleriks Advanced Editor "RadMarkupDialog" to create a rich text experiance with fonts, styles, colouring, bullets and so on, this is all stored as HTML markup and is supported in Telerik Reporting by using the HTML Textbox.

Perhaps this is something that is enough for you?!

Regards,
0
Jon
Top achievements
Rank 1
answered on 11 Apr 2010, 01:47 PM
Hi..
Can you clarify - how you display RTF in HTML text box?
I need this feature too!!!!
thanks!
0
Christian
Top achievements
Rank 1
answered on 21 Mar 2012, 10:00 AM
Hi,
Is there news? I urgently need the ability to print RTF text. In my WinForms application I installed the new editor and now wants to print the text as well.
Kind regards
Christian
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 23 Mar 2012, 10:12 AM
The reporting has HtmlTextBox item: http://www.telerik.com/help/reporting/report-items-html-text-box.html 
Simply get your rich text, send it to the report and let the report bind it to the HtmlTextBox. You have to keep on mind that the html markup that is supported has some restrictions (see the link above). 
0
Christian
Top achievements
Rank 1
answered on 18 Jun 2012, 10:55 AM
Hi,
is there any simple way to convert the content of a RadRichTextBox into valid HTML for the HtmlTextBox in a report?
I try the following code:

HtmlFormatProvider myHmtlProvider = new HtmlFormatProvider();
RadDocument myDocument = Program.currentDocument;
string hmtlCode = myHmtlProvider.Export(myDocument);
rptTestReport newReport = new rptTestReport();
newReport.htmlTextBoxTest.Value = hmtlCode;
this.reportViewer.Report = newReport;
this.reportViewer.RefreshReport();

I would by nice if there is an provider available with the specific limitations of the HtmlTextBox .
Kind regards.
Christian Rudat
0
Elian
Telerik team
answered on 21 Jun 2012, 01:46 PM
Hi Christian,

Here is what the RadRichTextBox team recommends:
In order to achieve best compatibility of the generated HTML with Telerik Reporting, you should apply the following settings:
DocumentExportLevel - Fragment;
StylesExportMode - Inline;
StyleRepositoryExportMode - DontExportStyles;
ExportFontStylesAsTags - true.
Source: Import/Export settings.
 
All the best,
Elian
the Telerik team

FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. The webinar will go through a real-world scenario of creating reports, embedding them in your application(s), and distributing them within your organization. We will also cover the newly added support for sub-reports, navigation actions (such as drill-down and drill-through), and report sources. Register here and bring your questions with you. We’ll try to address them during the webinar! You may even win a Telerik Ultimate Collection license! Register today >>

0
Christian
Top achievements
Rank 1
answered on 25 Jun 2012, 01:38 PM
Hi,
only the first two options are also available in WinForms. The other two relate to Silverlight components. I have now created the following code:

private void rptViewer_Load(object sender, EventArgs e)
        {
             
            HtmlFormatProvider myHmtlProvider = new HtmlFormatProvider();
              
            myHmtlProvider.ExportSettings.DocumentExportLevel = Telerik.WinControls.RichTextBox.FormatProviders.Html.DocumentExportLevel.Fragment;
            myHmtlProvider.ExportSettings.StylesExportMode = Telerik.WinControls.RichTextBox.FormatProviders.Html.StylesExportMode.Inline;
                          
            string hmtlCode = myHmtlProvider.Export(Program.currentDocument);
            rptTestReport newReport = new rptTestReport();
            newReport.htmlTextBoxTest.Value = hmtlCode;
            this.reportViewer.Report = newReport;
            this.reportViewer.RefreshReport();
        }


The code did not lead to the result. It was rather a blank screen appears.
Basis for my test is the example of the RTF TextBox from the WinForms components. A hin would be great.
Kind regards
Christian Rudat
Tags
General Discussions
Asked by
Patrick
Top achievements
Rank 1
Answers by
fruzicka
Top achievements
Rank 1
Patrick
Top achievements
Rank 1
Susanna
Top achievements
Rank 1
Jon
Top achievements
Rank 1
Christian
Top achievements
Rank 1
Hadib Ahmabi
Top achievements
Rank 1
Elian
Telerik team
Share this question
or