mark5009 Posted August 29, 2007 Share Posted August 29, 2007 Okay .. I worked out how to get fields (thanks, guys). Seem like everything got locked up and a complete restart managed to make things happen the way they should (I can get fields). :) So, part B.. I add the fields to the report with some in the title section and some in the detail section. And when I run the report in 'Empty Data Source' mode it shows me my report, all shiny new, with 'null' where the fields will go. Then when I run it against the XML data, I get a 'The document has no pages' error. The XML has data, so again, I guess that I am doing something wrong. All of the field descriptions seem to be pointing to the right places. Any thoughts of where to check next? Many thanks Link to comment Share on other sites More sharing options...
nitin403 Posted August 29, 2007 Share Posted August 29, 2007 Hi!If you post your JRXML file, I might be able to help you and correct it. Another thing try using iReport 2.0.0.Since I tried using iReport 2.0.1 and that seems to me full of bugs.My experience with iRpeort 2.0.1 is not good.(Sorry for the makers). I have seen our 'newbie: XML data source and iReports' post.try this to print just the userid.Open your jrxml in iReport.1)In menu click on view->Fields2)Click on new3)give field name as newUserId4)select class as java.lang.String5)This is IMP.In the 'Field Description' type 'UserId' without quotes6)In Report Query '/FooReport/header' without quotes7)Create a Text Field in the title band8)Keep its Expression as $F{newUserId} Hope this help.If it doesn't just send your JRXML file. 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