Search

Report Viewer Winform control cannot display HTML placeholder correctly by EricCS07

Resolved
as Not Reproducible Help for as Not Reproducible

1
0
Sign in
to vote
Type: Bug
ID: 775108
Opened: 12/25/2012 12:15:59 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
I use a Report Viewer winform control (Microsoft.ReportViewer.WinForms.dll 9.0.30729.4402) in my application to display a report with textboxes showing HTML placeholder contents as below. However, the characters are all showing as plain text. This does not occur on WebForm control of same version and Winform control on VS2010.

textbox 1:

="<P>this is a test 1</P><P><U><FONT size=5>this is a test 2</FONT></U></P><P><EM><FONT color=#c00000><STRONG>this is a test 3</STRONG></FONT></EM></P><P> </P><P> </P>"

textbox 2:
="<P>this is a test 1</P><P><U>this is a test 2</U></P>"

textbox3:
="<P>this is a test 1</P><P><B>this is a test 2</B></P>"
Details (expand)

Product Language

English

Version

SQL Server 2008

Category

Reporting Services

Operating System

Windows Server 2008 R2 (all editions)

Operating System Language

US English

Steps to Reproduce

1. Create a Winform app in VS2008. Add a Report Viewer control to it and connect to a server report. (ensure you use Microsoft.ReportViewer.WinForms.dll 9.0.30729.4402 in your app)
2. The server report has following 3 textboxes and they are all set as values to HTML placeholder:

textbox 1:

="<P>this is a test 1</P><P><U><FONT size=5>this is a test 2</FONT></U></P><P><EM><FONT color=#c00000><STRONG>this is a test 3</STRONG></FONT></EM></P><P>&nbsp;</P><P>&nbsp;</P>"

textbox 2:
="<P>this is a test 1</P><P><U>this is a test 2</U></P>"

textbox3:
="<P>this is a test 1</P><P><B>this is a test 2</B></P>"

3. Run the app to check result

Actual Results

HTML texts are shown as plain text

Expected Results

The result text should carry HTML styles

Platform

 

Virtualization

 
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 4/5/2013 at 10:32 AM
Thank you for finding this issue. Fortunately we have fixed this in VS 2010. To workaround this issue, you can upgrade to VS2010 or later. You could also use the VS 2010 or later version of the control in VS 2008. If this isn't possible, you should open a case with CSS to investigate further and possibly request a backport for VS 2008.

Thanks,
Matt Jones
Sign in to post a workaround.