This question is locked. New answers and comments are not allowed.
Hello,
The HtmlFormatProvider (or something else) can remove the <style type="text/css>...</style> and use directly the class attribute in the HTML generated?
It's because I use ReportViewer from Microsoft and I have a field HTML formated (in the rdlc file I use the option HTML - Interpret HTML tags as styles)
By example, changing this :
By this :
The HtmlFormatProvider (or something else) can remove the <style type="text/css>...</style> and use directly the class attribute in the HTML generated?
It's because I use ReportViewer from Microsoft and I have a field HTML formated (in the rdlc file I use the option HTML - Interpret HTML tags as styles)
By example, changing 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_2F83C0B6 { margin: 0px 0px 12px 0px;text-align: lefttext-indent: 0pt;padding: 0px 0px 0px 0px; } .s_6EC33F51 { font-family: 'Times New Roman';font-style: Italic;font-weight: bold;font-size: 26,67px;color: #000000;background-color: #FFFF00; } </style></head><body><p class="p_2F83C0B6"><span class="s_6EC33F51">asf asdfasd fasdfasd f</span></p></body></html>By 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></head><body>
<p style="margin: 0px 0px 12px 0px;text-align: lefttext-indent: 0pt;padding: 0px 0px 0px 0px;">
<span style="font-family:'Times New Roman';font-style: Italic;font-weight: bold;font-size: 26,67px;color: #000000;background-color: #FFFF00;">
asf asdfasd fasdfasd f</span></p></body></html>