Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As I am using
System.Windows.Forms.WebBrowser control

in my Application when i am binding the Html data to my Browser Control then First time it is not displaying to the Browser. then second time I am binding the Same Data it is showing to the Browser Control

This issue i am facing only on client System that Client is using (Windows Server 2012)

below code I am using to bind the data to the Control

XML
PEditor.BodyHtml = dsCandidatePrepared.Tables(CInt(tsPLabelRecords.Tag)).Rows(0)("Body")

If Not PEditor.BodyHtml Is Nothing Then
                            PEditor.BodyHtml = PEditor.BodyHtml.Replace("<P>", "<p style='padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px;'>")
                            
                        End If






This is my Html Data

Html Data
----------------------------------------------------------------------------------------
XML
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-outline-level: 1"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dear Mr.&nbsp;Lalit Harpalani<?xml:namespace prefix = "o" ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Please find attached resumes with the list of names below who have been found relevant for the post of HEAD-sales &amp; marketing .</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>1. Dadaddad </SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Please let us know the suitability of these candidates for the requirement so that we could schedule interview for those shortlisted by you.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-outline-level: 1"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<P class=section1 style="MARGIN: 0in 0in 0pt"><SPAN><FONT size=2 face="Bookman Old Style"><STRONG>Regards </STRONG></FONT><SPAN style="COLOR: navy"><BR></SPAN><STRONG><FONT size=2 face="Bookman Old Style">Vishwanatha M.H</FONT></STRONG></SPAN></P>
<P class=section1 style="MARGIN: 0in 0in 0pt"><SPAN></SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: silver"><FONT size=2 face="Bookman Old Style">______________________________________________</FONT></SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d"><BR></SPAN><STRONG><FONT face="Bookman Old Style"><FONT size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #ff6600">Talent </SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: blue">Track</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d"> </SPAN></FONT></FONT></STRONG><SPAN style="FONT-SIZE: 11pt"><FONT face="Bookman Old Style"><FONT size=2><STRONG>Services</STRONG>&nbsp;&nbsp;<SPAN style="COLOR: #1f497d">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">&nbsp;</SPAN></FONT></FONT><FONT face="Bookman Old Style"><FONT size=2><SPAN style="COLOR: #1f497d"> <BR></SPAN><SPAN style="COLOR: black">Direct No: 080 – 42458531| Hand Phone: 08431913566</SPAN></FONT></FONT></SPAN></P>
<P class=section1 style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: black"><FONT size=2 face="Bookman Old Style">Board Line: 080- 42458585 Ext:531</FONT></SPAN><SPAN style="COLOR: black"><BR></SPAN><A href="http://www.talenttrack.net/"><B><FONT size=2 face="Bookman Old Style">http://www.talenttrack.net</FONT></B></A></P><o:p></o:p></SPAN>
<P></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; COLOR: green"><o:p>&nbsp;</o:p></SPAN></P>

-------------------------------------------------------------------------------------
Posted
Updated 5-Feb-15 4:53am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900