Hello Muyerna, Thank you very much for your reply. 1. newer version can only load Jrxml file in order to use designer and preview(build). I new an empty report which auto create a Jrxml outline, then I copy my existing xml into the Jrxml. the designer will display the report layout. once I click preview with empty datasource(since I have db2 connection issue), it will display PDF view of report. at the same time it will generate .jasper file. if I use this new jasper file even I did not change anything. It can not be loaded in my java code. I already get corresponding version of jasperreports jar. 2. I will try subreport for multiple queries; 3. I notice that when writing sql in queryString tag, we can use case ... when .. then.. else... end, but all is used in select clause not where clause. for example I would like to do the following action: select * from table_a where table_a.id1 = $P{parameter_id1} if $P{parameter_id2} is not null and table_a.id2 = $P{parameter_id2} How should I write the query like above case? Thanks in advance. Wei