hi i am pramod
i using telerik reporting very heavily i have one issue regarding text formating
i embedded html table in one string and and take on textbox on report and give string value to textbox
my string TodisplayList
ToDisplayList = @"<table cellpadding='0' cellspacing='0' border='1' width='570'>";
ToDisplayList += @"<tr bgColor='#cbccd1'><td align='center'> <b>" + "Services" + "</b></td align='center'>" + "<td><b>" + "Duration" + "</b></td> " + "<td><b>" + "Appointments" + "</b></td>" + "<td><b>" + "Average" + "</b></td></tr>";
while (_enumerator1.MoveNext() && _enumerator2.MoveNext())
{
if (Convert.ToInt32(_enumerator1.Value) > 0 && Convert.ToInt32(_enumerator2.Value) > 0)
{
ToDisplayList += @"<tr><td>" + _enumerator1.Key + ":</td>" + "<td align='center'>" + _enumerator1.Value + " </td>" + "<td align='center'>" + _enumerator2.Value + " </td>" + "<td align='center'>" + float.Parse(_enumerator1.Value.ToString()) / float.Parse(_enumerator2.Value.ToString()) + " </td> </tr> ";
}
else
{
ToDisplayList += @"<tr><td>" + _enumerator1.Key + ":</td>" + "<td align='center'>" + _enumerator1.Value + " </td>" + "<td align='center'>" + _enumerator2.Value + " </td>" + "<td align='center'>" + (Convert.ToInt32(_enumerator1.Value) / Convert.ToInt32(_enumerator2.Value)) + " </td> </tr> ";
}
ServiceCount++;
DurationCount += Convert.ToInt32(_enumerator1.Value);
}
ToDisplayList += @"<tr height='10'><td colspan='4'></td></tr> ";
ToDisplayList += @"</table>";
--------------------------------------
now i bind that string to
this.textBox12.Value = ToDisplayList;
its display fine but when i taken print it also print the embeded html script
please give me any solution on this..?
i using telerik reporting very heavily i have one issue regarding text formating
i embedded html table in one string and and take on textbox on report and give string value to textbox
my string TodisplayList
ToDisplayList = @"<table cellpadding='0' cellspacing='0' border='1' width='570'>";
ToDisplayList += @"<tr bgColor='#cbccd1'><td align='center'> <b>" + "Services" + "</b></td align='center'>" + "<td><b>" + "Duration" + "</b></td> " + "<td><b>" + "Appointments" + "</b></td>" + "<td><b>" + "Average" + "</b></td></tr>";
while (_enumerator1.MoveNext() && _enumerator2.MoveNext())
{
if (Convert.ToInt32(_enumerator1.Value) > 0 && Convert.ToInt32(_enumerator2.Value) > 0)
{
ToDisplayList += @"<tr><td>" + _enumerator1.Key + ":</td>" + "<td align='center'>" + _enumerator1.Value + " </td>" + "<td align='center'>" + _enumerator2.Value + " </td>" + "<td align='center'>" + float.Parse(_enumerator1.Value.ToString()) / float.Parse(_enumerator2.Value.ToString()) + " </td> </tr> ";
}
else
{
ToDisplayList += @"<tr><td>" + _enumerator1.Key + ":</td>" + "<td align='center'>" + _enumerator1.Value + " </td>" + "<td align='center'>" + _enumerator2.Value + " </td>" + "<td align='center'>" + (Convert.ToInt32(_enumerator1.Value) / Convert.ToInt32(_enumerator2.Value)) + " </td> </tr> ";
}
ServiceCount++;
DurationCount += Convert.ToInt32(_enumerator1.Value);
}
ToDisplayList += @"<tr height='10'><td colspan='4'></td></tr> ";
ToDisplayList += @"</table>";
--------------------------------------
now i bind that string to
this.textBox12.Value = ToDisplayList;
its display fine but when i taken print it also print the embeded html script
please give me any solution on this..?