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

HtmlTextBox and HtmlFormatProvider

1 Answer 128 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Louis Bouchard
Top achievements
Rank 1
Louis Bouchard asked on 03 Nov 2010, 11:52 PM
Hello,

I use richTextBox and I save it in my database using HtmlFormatProvider.  I need to print this text in the  very same way in report.  But the HtmlTextBox support only text formatting option.

Any suggestion to convert someting this :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } 
.s_76E779F8 { font-family: 'Times New Roman';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000;background-color: #FFFFFF; } 
.s_D8D99854 { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000;background-color: #FFFFFF; } 
</style></head><body><p class="p_CC664AAA"><span class="s_76E779F8">q </span><span class="s_76E779F8"> Demeurer en contact avec la victime (victime consciente:</span><span class="s_76E779F8">q</span><span class="s_76E779F8"> oui</span><span class="s_76E779F8">q</span><span class="s_76E779F8"> non</span><span class="s_76E779F8">q</span><span class="s_76E779F8"> ne sait pas)</span><span class="s_D8D99854"><br /></span><span class="s_76E779F8">q </span><span class="s_76E779F8"> Déterminer les causes possibles de l'accident</span></p></body></html>

To this :

<p style="{margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px;}"><span style="{font-family: 'Times New Roman';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000;background-color: #FFFFFF;}">q </span><span style="{font-family: 'Times New Roman';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000;background-color: #FFFFFF;}"> Demeurer en contact avec la victime (victime consciente:</span>


Any clue ou suggestion will be VERY appreciate.

Thank you

1 Answer, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 04 Nov 2010, 09:13 AM
Hi Louis Bouchard,

Please take a look at the following post where we discuss the HtmlFormatProvider options for customizing its output in a way that it can be used in Telerik Reporting:

http://www.telerik.com/community/forums/silverlight/richtextbox/printing-a-raddocument-without-assigning-to-a-radrichtextbox.aspx

Let us know if you need further assistance.

Sincerely yours,
Mike
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Louis Bouchard
Top achievements
Rank 1
Answers by
Mike
Telerik team
Share this question
or