RTF not extending on to next page

Stimulsoft Reports.NET discussion
Post Reply
midsomer
Posts: 5
Joined: Tue Jan 18, 2011 3:56 am
Location: UK

RTF not extending on to next page

Post by midsomer »

Hi,

I am attaching an RTF file to my report with the following code:

Dim rt As Stimulsoft.Report.Components.StiRichText = EPDReport.GetComponents()("rtfExtraInfo")
Dim rtb As New RichTextBox
rtb.LoadFile(ExtraInfoFileName)
rt.RtfText = rtb.Rtf

This works fine provided that the RTF data is no more than one page in length.

If the RTF file (when viewed in MS Word) is more than one page, when I load it into my report the RTF data does not extend onto an extra page in my report, it just gets chopped off at the foot of the page.

In my report design I have an rtf component within a Databand. Here are some of the properties I have set:
Databand:
CanBreak = True
CanGrow = True
CountData = 1
NewPageBefore = True
SkipFirst = False

RTF:
CanBreak = True
CanGrow = True
GrowToHeight = True
Wysiwyg = True

Here is a representation of what I am trying to achieve:

Page 1
----REPORT HEADING----
----RTFDATARTFDATA----
----RTFDATARTFDATA----
----RTFDATARTFDATA----
----RTFDATARTFDATA----
----RTFDATARTFDATA----
----REPORT FOOTER ----

Page 2
----REPORT HEADING----
----RTFDATARTFDATA----
----RTFDATARTFDATA----
----RTFDATARTFDATA----


----REPORT FOOTER ----

Hope you can help.

Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

RTF not extending on to next page

Post by Ivan »

Hello,

We couldn't reproduce this bug.
Can you please send us a sample report with data or a simple test project, which reproduces the issue?

Thank you.
Post Reply