S4_mario Posted May 16, 2008 Share Posted May 16, 2008 I am using iReport 2.0.5. I am using a XML File as datasource. I grep my datas via xpath and I am able to drag and drop my fields in the Reportarea. Once I compile and start the Report in the editor I always get the message "The document has no pages." I followed a lot of tuturials, but I can not convince "iRepod" to do what I want, and it`s not made by Apple :-). Cheers for ur help Mario Link to comment Share on other sites More sharing options...
systemp Posted May 16, 2008 Share Posted May 16, 2008 Your documents may not have a query, click top of you data and check report query if there is a query.I had that error before and I realize just drag and droping is not the only way you need a query to select from. Link to comment Share on other sites More sharing options...
S4_mario Posted May 19, 2008 Author Share Posted May 19, 2008 Hi systemp, I put in an xpath expression into the query field. Without any changes. I still don`t get any datas. XPATH Expression:/addressbook/category/@name XML Datasource:<addressbook> <category name="home"> ..... </category> <category name="work"> ...... </category></addressbook> So this should give me at least 2 datasets. "home" and "work". But nothing happens. Thx Link to comment Share on other sites More sharing options...
mahesh.bdm Posted May 29, 2008 Share Posted May 29, 2008 Hi Mario, This is mahesh, iam also facing the same problem and tryed so many ways but still its not resolved. if u solve this problem please help me too. Iam giving my personal mail id mahesh.bdm@gmail.com Regards,Mahesh.... Link to comment Share on other sites More sharing options...
systemp Posted May 29, 2008 Share Posted May 29, 2008 I sent you an answer and how you can do this Link to comment Share on other sites More sharing options...
systemp Posted May 29, 2008 Share Posted May 29, 2008 Hi, i am trying to understand what exactly you are trying to do. did you follow the Tutorials etc? If not let me no i will guide you step by step on what to do and how this works.Thanx Link to comment Share on other sites More sharing options...
S4_mario Posted May 30, 2008 Author Share Posted May 30, 2008 Hi systemp, hi Mahesh, I followed the tutorials. (My given example is the tutorial one) If you have a better tutorial, let me know and please post the answer here. I think everyone should know the solution....if there is one... :huh: thx Mario Link to comment Share on other sites More sharing options...
olacjusz Posted June 3, 2008 Share Posted June 3, 2008 I think I am facing the same problem, could you please write here the solution if you already solve it. Thanks in advance, Regards, Olo Link to comment Share on other sites More sharing options...
cloudsun80 Posted June 4, 2008 Share Posted June 4, 2008 I have the same problem in xml datasource,it gives me a NULL,anyone help me,thanks!Someone can give me a reply to cloudsun80@163.com? Post edited by: cloudsun80, at: 2008/06/04 14:29 Link to comment Share on other sites More sharing options...
djmamana Posted June 27, 2008 Share Posted June 27, 2008 Hi, helping another guy that faced the very same problem but using DynamicJasper on top of JasperReports, I noticed that with XML datasources, embedded queries does not work (it does with SQL). I dunno if this is a bug, but I could not make it work like that. To make it work, the query must be passed as parameter to the constructor of the datasource object. Code:JRXmlDataSource ds = new JRXmlDataSource(document, "/my/xpath/query"«»); Since you are using iReport, you'll need extra code to pass a JRDataSource object at fill time since embedded queries for xml seems to be failing 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