Andrei T Posted June 10, 2013 Share Posted June 10, 2013 Hello,First I want to know if a text field when exporting to pdf can have the value Value1 and when exporting to xls the value is Value1 + h.Second is it posible to hide a text field when print previewing the report with JRViewer in Java? I am asking this because when I export to pdf I must hide some fields that in other formats need to be present (i managed to do this with net.sf.jasperreports.export.xls.exclude.key.textFieldWithHL property) but when I preview the report the field is not hidden. It hides only when I save the report as PDF.Thank you Link to comment Share on other sites More sharing options...
Solution Thomas Zimmer Posted June 10, 2013 Solution Share Posted June 10, 2013 The key answering all the questions obove should benet.sf.jasperreports.export.graphics2d.exclude.<whatever4afilterUneed>Cheers, Thomashttp://www.thomaszimmer.net Link to comment Share on other sites More sharing options...
Andrei T Posted June 11, 2013 Author Share Posted June 11, 2013 Thank you Thomas for your answer. For the second question is the right one but it doesn't really answers the first. What are you saying just hides something. I want to change the value of a text field for different exports. Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 11, 2013 Share Posted June 11, 2013 Sorry, I thought that would be clear. I know no better solution than overlaying two text fields with different expressions, suppressing one in pdf output, the ohter in xls output. 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