This is a migrated thread and some comments may be shown as answers.

Unexpected ellipsis in text in preview window and on paper after print

5 Answers 135 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 10 Sep 2012, 09:42 AM

Hello,

We have the following situation: text in preview window and on paper after print ends with ellipses, the last text row is absent.

Several clarifications:

- it's WPF application;

- Telerik Reporting Q2 2012;

- there is global style for textblock 

<Style x:Key="{x:Type TextBlock}" TargetType="{x:Type TextBlock}">
    <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
    <Setter Property="ToolTipService.ShowOnDisabled" Value="True" />
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
        </Trigger>
    </Style.Triggers>
</Style>

- if this style is absent, all works fine. But this is not the solution.

- if we redefine the style for textblock in preview window, like this:

<Style x:Key="{x:Type TextBlock}" TargetType="{x:Type TextBlock}">
    <Setter Property="TextTrimming" Value="None"/>
</Style>
all works fine, but only in preview window, on paper ellipsis still remain.

Is there any solution to this problem?

5 Answers, 1 is accepted

Sort by
0
Andrey
Top achievements
Rank 1
answered on 28 Sep 2012, 12:10 PM
Is there any solution to this problem?
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 29 Sep 2012, 08:57 AM
Not sure what kind of solution you expect. The "unexpected" behavior is your doing and caused by your global style, how is telerik at any fault on this matter? Try printing directly your XAML page by using the Silverlight API and it would behave in the same way.
0
Andrey
Top achievements
Rank 1
answered on 01 Oct 2012, 06:21 AM
Maybe I poorly explaned. But I still see there "unexpected" behavior. As you can see on attached image to first post, report contains only two elements: Panel (with text on it) and TextBox. The remaining space is free. TextBox not limited in height. In spite of this, it end with ellipses. Regardless of number of lines of text, penultimate line always ends with ellipses. If you make a TextBox border visible, you can see that it takes additional space for one text line (the last line), but it is empty. Is it correct behavior? 

As explained in http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.texttrimming.aspxtext trimming behavior fires only in situation "when content overflows the content area". But in my case, most part of page is blank and space for TextBox more than enough. 

I attached one more picture to confirm I have described above. Hope, I have clearly explaned the problem this time.
0
IvanY
Telerik team
answered on 03 Oct 2012, 05:02 PM
Hello Andrey,

We were able to reproduce the issue at our end. However, please have in mind that the xaml markup which Telerik Reporting is generating is very specific and with very accurate measurements which makes the rendered report almost identical to the designed one. Because of this any other styles that are set from the outside can easily mess up the layout of the report and therefore it is not advisable to use global styles.

We are going to investigate your case a little further and if there is a solution that keeps the current layout intact but fixes your issue we will consider implementing it for a subsequent release.

Greetings,
IvanY
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Andrey
Top achievements
Rank 1
answered on 04 Oct 2012, 01:08 PM

Hello IvanY,

Thanks for your reply. I hope you will find a solution soon, because the problem of "unexpected ellipsis" is serious for us, and avoid of using global styles is not considered at this moment.

Tags
General Discussions
Asked by
Andrey
Top achievements
Rank 1
Answers by
Andrey
Top achievements
Rank 1
Massimiliano Bassili
Top achievements
Rank 1
IvanY
Telerik team
Share this question
or