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

Print RadRichTextBox content

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 04 Oct 2012, 06:03 PM
On our GUI screens we use the Telerik.Windows.Controls.RadRichTextBox control. We save it to a PDF byte array with the PdfFormatProvider.Export() method.
The PDF byte array is passed through a WCF-service that saves it in a SQL-Server database. So far so good.
To print the content of the RadRichTextBox control on the Telerik.Reporting.Report we use the Telerik.Reporting.PictureBox control.
But this control can handle only image formats, no PDF. For Silverlight it is also limited to a few formats. Our choice was the PNG-format.
In the WCF-service the PDF byte array read from the database, is converted to a PNG byte array (using using GhostScript DLL) that is returned to the Silverlight client application.
Through a object data source the PNG byte array comes in the report and is bind to the PictureBox.
Conclusion:
As you can see this is a very long and difficult way to just print the content of a RadRichTextBox!
The content is on the report but the quality from the converted PDF is so very bad that is not acceptable. So I’m stuck.

Question
Is if there is a better Telerik way to do the job. If not I can’t use the Telerik controls an we will not buy.
Maybe I need I powerfull PDF-PNG commercial converter with a .Net API to improve the quality.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Oct 2012, 02:58 PM
Hello Andy,

Do you use Telerik Reporting only to print the RadRichTextBox content? If this is the case our suggestion is to check out the examples at Printing a RadDocument without assigning to a RadRichTextBox and if you experience any difficulties to elaborate in the dedicated forum thread.

Regards,
Peter
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Andy
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or