Hi,
I'am using the Stimulsoft-Reports(.NET/WPF) components to create and print reports (Version 2011.3). Unfortunately i've encountered some errors with richttext handling, especcially with the resize/growing behaviour. To use growing richttext, i'm using the work-around and placed it into a Databand (Count=1). But this seems to work not always and is depending on how i start the designer and how i'm using the preview control.
I've attached a test-project containing a report to reproduce the incorrect behaviour.
If you start the project, there will be three buttons on the left side. The first starts the designer and the preview looks fine.
The second button starts the designer a slightly different way and causes the preview to render only strange rtf-content.
The third button fills the preview control on the right side with the report. This will render the real text, but won't resize correctly. (In fact the richtext is claiming the size as when it displays the strange rtf-content, wich you can see in the second button test.)
All three tests use the same Report (Report.mrt) with a dummy business object "Test" with one string property which
contains the richttext.
It would be nice if you could check the test-project and tell me whether i'm doing something wrong, or if it is a bug.
thank you in advance, Johannes
RichText resize/growing problem
RichText resize/growing problem
- Attachments
-
- 1543.StiRTFTest.zip
- (399.96 KiB) Downloaded 175 times
RichText resize/growing problem
Hello.
The Design() and the Render() methods are WinForms methods. The is a problem with displaying your RichText there. The fix will be available in our next prerelease build.
Thank you.
You should use the DesignWithWpf() method instead of Design() and the RenderWithWpf() method instead of Render().benecke wrote:I'am using the Stimulsoft-Reports(.NET/WPF) components to create and print reports (Version 2011.3). Unfortunately i've encountered some errors with richttext handling, especcially with the resize/growing behaviour. To use growing richttext, i'm using the work-around and placed it into a Databand (Count=1). But this seems to work not always and is depending on how i start the designer and how i'm using the preview control.
I've attached a test-project containing a report to reproduce the incorrect behaviour.
If you start the project, there will be three buttons on the left side. The first starts the designer and the preview looks fine.
The second button starts the designer a slightly different way and causes the preview to render only strange rtf-content.
The third button fills the preview control on the right side with the report. This will render the real text, but won't resize correctly. (In fact the richtext is claiming the size as when it displays the strange rtf-content, wich you can see in the second button test.)
All three tests use the same Report (Report.mrt) with a dummy business object "Test" with one string property which
contains the richttext.
It would be nice if you could check the test-project and tell me whether i'm doing something wrong, or if it is a bug.
The Design() and the Render() methods are WinForms methods. The is a problem with displaying your RichText there. The fix will be available in our next prerelease build.
Thank you.