New page in iReport

守給你的承諾、 提交于 2019-12-13 14:50:16

问题


this is my situation:

  1. I have a report with 10 (or more) items in detail area

  2. I have a large text field that I would like to span across multiple pages (this text has nothing to do with items)

  3. I am not able to create another page because all of my items fit nicely on the first page

How can I create (force) a new page to contain only some variable (static) text, on the page footer? In other words, how can I create a new page with no items?


回答1:


Palette > Report Elements > Break -> Page break. Everything what is after this Break is printed on next Page.




回答2:


In iReport Designer 4.1.1

The Break element is inside the Palette window.

You can select if you want to break the page or column




回答3:


In 5.5.0 You can add large text field to the Summary band. Then,click report name in Report Inspector find "Summary on new page" in Properties then check. So you have new page after detail.




回答4:


Can you be specific about iReport version.

In 2.0.5, from the Edit menu choose "Insert page/column break" Put it in the band where you want to break. In the Properties dialog, make sure the Break Type is set to "Page"

I usually prefer to use it with "Print with expression" so it does not make an empty page when i dont have an empty report already.




回答5:


You can increase the page size of detail band in Ireport, To increase size go to xml tab

and search for

 <detail>
    <band height="482"/>

and add

  <detail>
  <band height="600" splitType="Immediate">

After that i think you may able to see another page.I have tested this method with only Summary band, if it does not work copy all the item in summary band.




回答6:


You can use Break that you will get from Palette.

And if you want to add some text in the footer of second page only then you can't do it with the Brak only.

In that situation you need to use PrintWhen expression suits for your requirement.



来源:https://stackoverflow.com/questions/1510819/new-page-in-ireport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!