Jump to content

isBlankWhenNull in pdf and summary location


jingc3

Recommended Posts

Hi

 

I want to present a report that has a table with details, then there is an image at the bottom of page. Therefore, I put the table contents in <detail> band. and the image to the <summary> band.

 

I am having two issues here:

1. for the cells in the table, I have set

Code:

<textField isBlankWhenNull="true"> <reportElement x="290" y="0" width="20" height="30"/>
<box topBorder="None" topBorderColor="#EEEEEE" leftBorder="None" leftBorderColor="#EEEEEE" bottomBorder="Thin" bottomBorderColor="#EEEEEE" rightBorder="None" rightBorderColor="#EEEEEE"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font reportFont="footer_font"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{symbol2}]]></textFieldExpression>
</textField>

It works fine in html when there is no data in column, no text and box were printed. However, when export to PDF, empty box is printed

 

2. There is a big space between the summary section and the report. How do I reduce the space so that it will print the image right after the report?

 

Thanks in advance

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...