Text getting cut off at the bottom of text control

Stimulsoft Reports.Silverlight discussion
Locked
mriggall
Posts: 57
Joined: Mon May 07, 2012 7:41 pm
Location: Melbourne

Text getting cut off at the bottom of text control

Post by mriggall »

Hi Aleksey

We are having a lot of trouble with the text component in the Silverlight Viewer, when it contains a large amount of text and needs to re-render, we find that the last line of text in the control is getting cut-off. The text control is set as editable and after entering the text we re-render the report. We also have placed the text control into a databand, it is the only control on the databand.

I've included an image to show what we mean, as you can see where I have highlighted, the last line of text in the control is being vertically cut-off.

We have tried the following:

1) Setting control to "Grow to Height";
2) Setting LineLimit = True;
3) Adding a Bottom Margin to the control;
4) Setting DisplayFormat = WYSIWYG, Standard or Typeface (none of the settings make a difference).

This only occurs with some text in the control, in other situations the last line of text is not cut off. It mostly occurs when the text needs to break over onto a new page. The issue can be reproduced as follows:

1) Create a new report template;
2) Add a databand;
3) Add a text control onto the databand and set the attributes as follows:
a) CanGrow = true;
b) WordWrap = true;
c) Editable = true;
d) LineLimit = true;
e) Bottom Margin = 6;
f) CanBreak = true;
5) Edit the text to insert text that will cause the control to grow when the report is rendered
4) Generate the report in the Silverlight viewer
7) Notice that the last line of text will be cut off in a number of cases.

thanks

Matt
Attachments
Example text control in Silverlight report
Example text control in Silverlight report
Capture.PNG (14.12 KiB) Viewed 4628 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Text getting cut off at the bottom of text control

Post by HighAley »

Hello.

Sorry, but we couldn't reproduce your issue.
Could you send us sample project where we can see how do you re-render report after editing?
Please, send us also a report that you get with your instruction.

Thank you.
mriggall
Posts: 57
Joined: Mon May 07, 2012 7:41 pm
Location: Melbourne

Re: Text getting cut off at the bottom of text control

Post by mriggall »

Thanks Aleksey

I have attached a sample template and document file.

Both of these were created in your Silverlight demo on your site. They illustrate the problem.

thanks

Matt
Attachments
Sample Document.mdc
(9.69 KiB) Downloaded 281 times
Sample Template.mrt
(22.04 KiB) Downloaded 277 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Text getting cut off at the bottom of text control

Post by HighAley »

Hello, Matt.
mriggall wrote:The text control is set as editable and after entering the text we re-render the report.
Could you describe this moment more detailed?
How do you re-render the report?
Could you describe how to reproduce your issue in details?

Thank you.
mriggall
Posts: 57
Joined: Mon May 07, 2012 7:41 pm
Location: Melbourne

Re: Text getting cut off at the bottom of text control

Post by mriggall »

Hi Aleksey

Sorry I should have explained in more detail. We built the Stimulsoft Silverlight reports into our application which allows the user to edit the report content. After finishing editing, we store all of their user entered text in specific database fields and then re-render the report and populate that text back in. It means that we can re-render the report and refresh any of the data in databands etc without losing user entered text.

However, from my example attached it doesn't need to use those reproduction steps. If you simply render that report that I attached, you can see that the text has been cut-off at the bottom of the text control, it isn't displaying all of the text in the report.

Please let me know if you have any other questions.

thanks

Matt
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Text getting cut off at the bottom of text control

Post by HighAley »

Hello.

We have reproduced the issue.
We need some time for analyzing of the problem.
We will let you know about results.

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Text getting cut off at the bottom of text control

Post by HighAley »

Hello.

The problem is in using different technology of report rendering and showing it.
The report is rendered in WinForms and is shown in Silverlight. While these technologies use different methods of text drawing, there is no easy solution of the problem.
We have some ideas how to solve it. We will continue working of the solution after publishing our major release.

Thank you.
Locked