mths.brn Posted June 20, 2018 Share Posted June 20, 2018 I want to print until the bottom on every page if needed and in the next page the continuation of the cells that exceed the previous page. I've accomplished this. The problem is, for the cells with content only on the previous page, there're no borders in the next page leaving a blank space every time this happen. I've shuffled between all options of Stretch Type, Detail Overflows, and Stretch With Overflow and no result. I hate to ask questions in community forums because documentation should cover everything about the program, but it's almost useless for me. The first image shows that everything works fine...https://pasteboard.co/HqMmINF.pngUnless it has to continue to another page: https://pasteboard.co/HqMoBjG.pngPS: The content is blurred because I work with sensitive stuff. Link to comment Share on other sites More sharing options...
Solution szaharia Posted June 21, 2018 Solution Share Posted June 21, 2018 The following workaround should help: for each textfield in the detail section place an empty frame with borders, having the same x, y, width and height as the textfield. Set isPrintWhenDetailOverflows="true" for the frame:<frame> <reportElement stretchType="ContainerHeight" x="150" y="0" width="100" height="30" isPrintWhenDetailOverflows="true"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box></frame><textField> <reportElement stretchType="ContainerHeight" x="150" y="0" width="100" height="30"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textFieldExpression><![CDATA["text content"]]></textFieldExpression></textField>Note that the textfield is placed as standalone and not enclosed into the frame.Also, the <box> element in the textfield should be kept for getting accurate results when using grid exporters (Excel, ODS, etc). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now