I am having an issue using the latest (internal) build with the the Reporting control HTMLTextBox.
When I use a HTML fragment like <u>Test</u> the control renders as expected with an underline. Attached is screen shot HTMLFragment.
But when I supply the HTMLTextBox well formed HTML like:
<p style="margin-top: 0px;margin-bottom: 12px;line-height: 1.15;"><span style="font-family: 'Verdana';font-size: 16px;"><u>Test</u></span></p>
The underline and last letter is missing does not render as in the attached screen shot HTML.
Any ideas on how I can overcome this?
XAML
<Window x:Class="ReportViewer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tr="http://schemas.telerik.com/wpf"
Loaded="WindowLoaded"
Title="MainWindow">
<StackPanel Orientation="Vertical">
<tr:ReportViewer x:Name="rvWorks"
Margin="5 5 5 5" />
<tr:ReportViewer x:Name="rvDoesNotWorks"
Margin="5 5 5 5" />
</StackPanel>
</Window>
C#
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void WindowLoaded(object sender, RoutedEventArgs e)
{
UriReportSource works = new UriReportSource();
UriReportSource doesNotWork = new UriReportSource();
works.Uri = @"C:\Temp\HtmlTextBox.trdx";
works.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", "<u>Works</u>"));
doesNotWork.Uri = @"C:\Temp\HtmlTextBox.trdx";
doesNotWork.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", @"<span style=""font-family: 'Verdana';font-size: 6px;""><u>Does Not Work</u></span>"));
this.rvWorks.ReportSource = works;
this.rvDoesNotWorks.ReportSource = doesNotWork;
}
}
}
When I use a HTML fragment like <u>Test</u> the control renders as expected with an underline. Attached is screen shot HTMLFragment.
But when I supply the HTMLTextBox well formed HTML like:
<p style="margin-top: 0px;margin-bottom: 12px;line-height: 1.15;"><span style="font-family: 'Verdana';font-size: 16px;"><u>Test</u></span></p>
The underline and last letter is missing does not render as in the attached screen shot HTML.
Any ideas on how I can overcome this?
XAML
<Window x:Class="ReportViewer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tr="http://schemas.telerik.com/wpf"
Loaded="WindowLoaded"
Title="MainWindow">
<StackPanel Orientation="Vertical">
<tr:ReportViewer x:Name="rvWorks"
Margin="5 5 5 5" />
<tr:ReportViewer x:Name="rvDoesNotWorks"
Margin="5 5 5 5" />
</StackPanel>
</Window>
C#
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void WindowLoaded(object sender, RoutedEventArgs e)
{
UriReportSource works = new UriReportSource();
UriReportSource doesNotWork = new UriReportSource();
works.Uri = @"C:\Temp\HtmlTextBox.trdx";
works.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", "<u>Works</u>"));
doesNotWork.Uri = @"C:\Temp\HtmlTextBox.trdx";
doesNotWork.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", @"<span style=""font-family: 'Verdana';font-size: 6px;""><u>Does Not Work</u></span>"));
this.rvWorks.ReportSource = works;
this.rvDoesNotWorks.ReportSource = doesNotWork;
}
}
}