Text Box Spanning Multiple Pages
-
- Posts: 33
- Joined: Sun Jul 02, 2006 6:06 pm
- Location: New Zealand
Text Box Spanning Multiple Pages
We've got a text box which is linked to a field in a database. Potentially this field is unlimited in length, and so could span multiple pages. We've put this text box at the end of a report. The problem is if the text in this field is very big, the text box in the report does not span multiple pages, and as a result, we loose the rest of the text.
Is there a way to make the text box to grow as big as the text and span as many pages as it needs to?
Thanks
Is there a way to make the text box to grow as big as the text and span as many pages as it needs to?
Thanks
Text Box Spanning Multiple Pages
Yes, it is possible. You need do the following:
1. Set CanGrow and CanBreak properties in true for the DataBand and StiText components.
2. A WordWrap property should be set in true for the StiText component.
3. If needed then the MaxNumberOfLines property of the StiText component will control maximum lines which is allowed for the StiText component for one page.
Thank you.
1. Set CanGrow and CanBreak properties in true for the DataBand and StiText components.
2. A WordWrap property should be set in true for the StiText component.
3. If needed then the MaxNumberOfLines property of the StiText component will control maximum lines which is allowed for the StiText component for one page.
Thank you.
-
- Posts: 33
- Joined: Sun Jul 02, 2006 6:06 pm
- Location: New Zealand
Text Box Spanning Multiple Pages
Thanks for the quick reply. We had not been using a DataBand. We had simply dropped a data srouce from the dictionary onto the page. With it now in a DataBand, it is spanning multiple pages.Edward wrote:Yes, it is possible. You need do the following:
1. Set CanGrow and CanBreak properties in true for the DataBand and StiText components.
2. A WordWrap property should be set in true for the StiText component.
3. If needed then the MaxNumberOfLines property of the StiText component will control maximum lines which is allowed for the StiText component for one page.
Thank you.
However we had downloaded the latest version of the software 2 days ago and used the Designer today to edit the report. We noticed the new designer displays items differently to the version we had been using. A typical page on our report has a page header, some text boxes on the page, then a page footer. The designer we had been using displayed the page as it would be rendered/printed with the header up top, text boxes, then footer at the bottom. The new designer shows the header at the top, then footer directly beneath header, then other text boxes where they're meant to be. The main issue with this new desinger for us is that when we drop a component directly beneath the Header, it becomes part of the footer.
Is there a way to set the desinger to its old behaviour displaying the headers and footers at the top and bottom of the page as you would see it if it were printed?
Thanks
Text Box Spanning Multiple Pages
In build from 17 May you can use following static property:
Assign to this property true and your receive previous behavior.
Thank you.
Code: Select all
StiOptions.Engine.DockPageFooterToBottom
Thank you.
-
- Posts: 33
- Joined: Sun Jul 02, 2006 6:06 pm
- Location: New Zealand
Text Box Spanning Multiple Pages
That option worked very well, thanks.
Now that we've got the text box in a data band and have set Can Grow and Can Break properties, it does exactly what we want spanning multiple pages. However we noticed somthing strange. When viewing the report in the veiwer/preview, it is fine. When you print the report directly to the printer there would be able 5 or 6 lines missing from each page. The headers and footers are fine, but the text on the page is cut off. It dosen't overflow to the next page. We've created a PDF, and the pdf is fine, and the pdf prints fine. It's only when you print the report from the viewer directly which is causing the missing text.
Is there a fix for this?
Thanks
Now that we've got the text box in a data band and have set Can Grow and Can Break properties, it does exactly what we want spanning multiple pages. However we noticed somthing strange. When viewing the report in the veiwer/preview, it is fine. When you print the report directly to the printer there would be able 5 or 6 lines missing from each page. The headers and footers are fine, but the text on the page is cut off. It dosen't overflow to the next page. We've created a PDF, and the pdf is fine, and the pdf prints fine. It's only when you print the report from the viewer directly which is causing the missing text.
Is there a fix for this?
Thanks
Text Box Spanning Multiple Pages
Please set WYSIWYG and Typographic settings of the StiText component (Properties - Text Quality - Wysiwyg)
Thank you.
Thank you.
-
- Posts: 33
- Joined: Sun Jul 02, 2006 6:06 pm
- Location: New Zealand
Text Box Spanning Multiple Pages
We have set the WYSIWYG property, and yes it is displaying what's getting printed, so we are happy with that. However our text spans 4 pages, but it always adds an extra page at the end, which is blank. Is this a bug or are we doing something wrong?Pavel wrote:Please set WYSIWYG and Typographic settings of the StiText component (Properties - Text Quality - Wysiwyg)
Thank you.
Text Box Spanning Multiple Pages
Please send *.mrt file with your report to
for analysis.
Thank you.

Thank you.