riteshptl Posted July 26, 2007 Share Posted July 26, 2007 Hi,I am using jasper report for my project.The problem which i am facing is as follows.when i run the report, if no data is retrieved for the query, i see a blank pdf. Is it possible to show an appropriate message saying "No records found" in the pdf instead of an empty pdf. Regards,Ritesh Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 26, 2007 Share Posted July 26, 2007 There should be some option for this under EDIT->REPORT PROPERTIES->MORE...(tab)->WHEN NO DATA... Link to comment Share on other sites More sharing options...
fatsy Posted July 26, 2007 Share Posted July 26, 2007 Hallo codyjasperForge & all , When I execute with active connection the pdf output file is blank although with JR Viewer is the output not blank.My data has also links in it.Can it be because of the link references.(which I doubt !!)Thanks in advance YoursFatsy Post edited by: fatsy, at: 2007/07/26 15:59Post edited by: fatsy, at: 2007/07/26 16:00 Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 26, 2007 Share Posted July 26, 2007 ...although with JR Viewer is the output not blank. What is the output in JRViewer? It could be that pdf does not support your links. What pdf version are you using? Link to comment Share on other sites More sharing options...
riteshptl Posted July 27, 2007 Author Share Posted July 27, 2007 Hi thanks for the reply, on setting the property WhenNoData to All Sections, No details. The problem is getting solved partially, but still i am struggling to display the message "No Records Found"... any suggestions? Link to comment Share on other sites More sharing options...
fatsy Posted July 27, 2007 Share Posted July 27, 2007 Hallo codyjasperForge & all ,Thanks for the quick reply.The output in the JRViewer also als Html is the data which I'm supposed to recieve.i'm using pdf version 7.0 professional.Thanks in advance Link to comment Share on other sites More sharing options...
fatsy Posted July 27, 2007 Share Posted July 27, 2007 Hallo codyjasperForge & all ,Thanks for the quick reply.The output in the JRViewer also als Html is the data which I'm supposed to recieve.i'm using pdf version 7.0 professional.Thanks in advance Link to comment Share on other sites More sharing options...
fatsy Posted July 27, 2007 Share Posted July 27, 2007 Hallo codyjasperForge & all ,Thanks for the quick reply.The output in the JRViewer also als Html is the data which I'm supposed to recieve.i'm using pdf version 7.0 professional.Thanks in advance Link to comment Share on other sites More sharing options...
fatsy Posted July 27, 2007 Share Posted July 27, 2007 Hi,I solved the problemWhen I print the data als one page(ignore pagination) the pdf pages were blank.So I printed the in several pages then it worked.(unclicked ignore pagination) yoursFatsy 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