miramon Posted August 29, 2009 Share Posted August 29, 2009 HiI am new to jasper reports. I wanted view a jasper report in html. I used jasperreports 1.3. 1My problem is that I cannot see the field values eventough the field names are displayed and no errors reported.I have no idea why there are no values. Please help me.http://www.coderanch.com/templates/default/images/spacer.gifCode: Link to comment Share on other sites More sharing options...
JSquire Posted August 29, 2009 Share Posted August 29, 2009 is this a report you developed yourself? check the fields in the report are large enough to hold the data (height & length) - maybe set Stretch with overflow property on the field?to test try static text and see if you get the same result or try a sample report from the JasperReports project. Link to comment Share on other sites More sharing options...
miramon Posted August 31, 2009 Author Share Posted August 31, 2009 Hi,I used iReport and it works perfectly fine on the server side. I guess there is some problem with 'file'. I had define 'file' as:FileInputStream file = new FileInputStream("D:\\Report\\reportCandidate.jasper");[/code]When I give file.read() an error message 'Error loading object from InputStream' is displayed.Do you think this could be the problem? If so, How do I set the right path for 'file'.I am not very sure where the problem lies. Link to comment Share on other sites More sharing options...
miramon Posted September 1, 2009 Author Share Posted September 1, 2009 Hi again,I found out that if I put a line or a static text on the column header or page footer, it is getting displayed when I run it. But when I put the same thing in detail part, it is not being displayed.Am I missing any jar file? Where could the problem be?Please help me. Thanks in advance Link to comment Share on other sites More sharing options...
miramon Posted September 1, 2009 Author Share Posted September 1, 2009 I've shifted the text field on the column header part, now I can see the field values.They are getting displayed on a pdf file also.But is this the right way to do it?What is the detail part in jasper report for then? Link to comment Share on other sites More sharing options...
drapiern Posted March 26, 2010 Share Posted March 26, 2010 Hey,I have the same problem, did you found a solution yet? kind regards, 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