crazybugs Posted November 20, 2009 Share Posted November 20, 2009 We used the below mentioned property in the master report to exclude the column header of the subreport in csv format. However this does not seem to work.These are the properties set in the master report, to exclude the “columnHeader” band from the subreport “xxxx_subreport”. <property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.mysubreport" value="columnHeader"/><property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.mysubreport" value="xxxx_subreport"/> Can anyone please confirm if we are missing out something here.Post Edited by crazybugs at 11/23/2009 08:39Post Edited by crazybugs at 11/23/2009 08:41 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted November 24, 2009 Share Posted November 24, 2009 Hi, This is not for excluding the column header. This is for keeping the first occurance of the column header in case it is excluded by the: net.sf.jasperreports.export.csv.exclude.origin.band.mysubreport=columnHeadernet.sf.jasperreports.export.csv.exclude.origin.subreport.mysubreport=xxx_subreport I hope this helps.Teodor Link to comment Share on other sites More sharing options...
crazybugs Posted November 25, 2009 Author Share Posted November 25, 2009 Sorry Teodor, I had missed this in my comment. Even if I use this property,in my case the column header gets repeated in csv file for each Jasper viewer page. Link to comment Share on other sites More sharing options...
crazybugs Posted November 30, 2009 Author Share Posted November 30, 2009 Did anyone face any issues similar to this.. Link to comment Share on other sites More sharing options...
lucianc Posted November 30, 2009 Share Posted November 30, 2009 teodordWrote: net.sf.jasperreports.export.csv.exclude.origin.subreport.mysubreport=xxx_subreport That should actually be net.sf.jasperreports.export.csv.exclude.origin.report.mysubreport=xxx_subreport.HTH,Lucian Link to comment Share on other sites More sharing options...
crazybugs Posted December 1, 2009 Author Share Posted December 1, 2009 Thanks for the reply lucianc.Using the above mentioned parameters I was able to exclude the column header from the subreport in csv.but how will be able to keep first occurance of the column header in csv.Post Edited by crazybugs at 12/01/2009 16:24Post Edited by crazybugs at 12/03/2009 08:19 Link to comment Share on other sites More sharing options...
crazybugs Posted December 3, 2009 Author Share Posted December 3, 2009 I tried to keep the first occurence of column header in csv by using the below mentioned parameters but it didnt work out. <property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.mysubreport" value="columnHeader"/> <property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.mysubreport" value="xxxx_subreport"/> Link to comment Share on other sites More sharing options...
Teodor Danciu Posted December 3, 2009 Share Posted December 3, 2009 Hi, What version of JR are you using? Thank you,Teodor Link to comment Share on other sites More sharing options...
crazybugs Posted December 3, 2009 Author Share Posted December 3, 2009 jasperreports-3.6.1 Link to comment Share on other sites More sharing options...
crazybugs Posted December 8, 2009 Author Share Posted December 8, 2009 I was able to resolve the issue by following steps. I used the following property in the master report. <property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.mysubreport"value="columnHeader"/> <propertyname="net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.mysubreport"value="xxxxx_subreport"/> I used the following property in my subreport(xxxxx_subreport). <propertyname="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.columnHeader"value="columnHeader"/> Link to comment Share on other sites More sharing options...
jtowner Posted April 8, 2015 Share Posted April 8, 2015 I have tried using this same format for excluding a table component column header and it did not seem to work do you know if this same style can be applied to tables? This is what I tried with no success, detailTable is the key I gave to my table. <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.detailTable" value="columnHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.report.detailTable" value="detailTable__Table"/>and this is the report element in the component band. <summary> <band height="200" splitType="Stretch"> <componentElement> <reportElement key="detailTable" x="0" y="0" width="1280" height="80" uuid="529206a5-b4a2-4715-8985-ff01b9c106f0"> <property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.columnHeader" value="columnHeader"/> </reportElement> 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