Page 1 of 1

Bug?: Preview generates infinate pages

Posted: Wed May 02, 2007 12:24 am
by Jon
I have hit a problem with StimulReports.Net 2007.1

----------------------

To recreate
1) Create a blank report.
2) Add a Group Header with a text box with the word "Start" in it.
3) Add a Data Band, link it to a database and drag a field on to the report which contains one or more rows with a lot of text (>6000 chars) in the field.
4) Set the database field to the width of the DataBand and turn on "Can Grow" and "Word Wrap".
5) Add a Group Footer to the report, with a text box with the work "End" in it.

Symptoms
Run a preview. If you have the same problem as I do, then the report just keeps on generating pages. It never finishes.

Partial Solution
Turn off the "Can Grow" or on the Data Band turn off "Keep Footer Together" and the report generates, however when I do it I can't see the Group Footer (the "End" text box") and the last line of text is cut in half.

----------------------

Can anyone else recreate this problem? I can send the block of text I'm using if it helps (although I think anything long enough to make the text box stretch to over a page will do it).

Stimulsoft: Any ideas?

Thanks,
Jon.

Bug?: Preview generates infinate pages

Posted: Wed May 02, 2007 12:39 am
by Jon
Thought I could use the solution above to fix the report I was having problems with (I tried the solution on test data), but just realised I don't have a Group Footer and the "Keep Together"'s are already off. My new problem seems to be caused by having more than one field in the Data Band.

To recreate
1) Create a blank report.
2) Add a Group Header with a text box with the word "Start" in it.
3) Add a Data Band, link it to a database and drag a field on to the report which contains one or more rows with a lot of text (>6000 chars) in the field.
4) Set the database field to the width of the DataBand and turn on "Can Grow" and "Word Wrap".
5) Add a text field with the word "Test" in to the Data Band under the database field.

Symptoms
Run a preview. If you have the same problem as I do, then the report just keeps on generating pages. It never finishes.

Partial Solution
Turn on "Can Break" on the large database field. Once again it cuts the text off, it doesn't seem to be able split over several pages. I've tried Typograhic, WYSIWYG and Standard text modes.

Is this a limitation of StimulReports? Can a text box not spread over several pages? Please help, I need to get this working within 2 days :sweat:

Jon.

Bug?: Preview generates infinate pages

Posted: Wed May 02, 2007 1:54 am
by Edward
Please set the CanBreak and CanGrow properties of the DataBand and StiText in true.

Thank you.

Bug?: Preview generates infinate pages

Posted: Wed May 02, 2007 7:01 am
by Edward
We will inform you when the solution will be ready in this topic.

Thank you.

Bug?: Preview generates infinate pages

Posted: Thu May 03, 2007 8:29 am
by Edward
Please set MaxNumberOfLines property of the StiText component to the maximum allowed count of the lines on your page.

If StiText can spread on more then one page then please set the CanBreak property of the DataBand in true.

Thank you.