Jump to content
We've recently updated our Privacy Statement, available here ×

me_vsoundar

Members
  • Posts

    13
  • Joined

  • Last visited

me_vsoundar's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Hello Friend, I just explain my jasper template structure now. Master Report is filled by mysql query at run time and some field values are passed as a "SUB REPORT PARAMETER". And in the same time, some field values are printed here - (Result from the Master Query). Using this parameter value, the sub report execute its another query. now if no one record is available for the query, then it wont print anything in the subreport. Now, i want to remove/undisplay the master fields also, in the output. How to do this.? Note: I placed the master filelds and the sub - report component in separte band-details. Regards, ../../../themes/jasper/images//tools/forum/arrow.gif Soundararajan V
  2. Hello, Consider, My Jasper contains main Report and a sub-report. Now If i run the jasper with data, it works fine. But, i want to show/Display the Records(Main Report) which has atleast one sub-report. (i.e) To show only the records which has subreport(s). [in other words, hide the main report which has no subreport] How can i do this Through iReport ? ../../../themes/jasper/images//tools/forum/arrow.gif Regards, V.Soundararajan.
  3. Hello, Consider I have a Report, which has some Fields and a subreport. Now I want to remove/Not display the record which has no subreport or the subreport is null. How this can be done ? (ie, i want to display the masterreport & subreport which has atleast one entry of subreport. Thanking you, Regards, ../../../themes/jasper/images//tools/forum/arrow.gif Soundararajan V Post Edited by me_vsoundar at 05/20/2010 09:38 Post Edited by me_vsoundar at 05/20/2010 09:45
  4. Hello, I am using the jasper reports in struts2 framework. Consider, I've an action class which contains the dataSource(i.e a list) and the necessary parameters... In my struts.xml like <action name="masterAction" class="real.MasterAction"> <result name="SUCCESS" type="jasper"> <param name="location">/page/DspGrpBasedReport.jasper</param> <param name="dataSource">plist</param> <param name="format">PDF</param> </result> <result name="FAILURE">/Page2.jsp</result> </action> Now, if i invoke this action, it runs and generated the PDF in the same browser window. But I want this PDF to save in the server system(where ever i specify the location) also automatically. In other words, Whenever i invoke the action, the generated PDF File automatically save in the SERVER machine(Where i to specify for eg., UNDER C:Reports). Regards, ../../../themes/jasper/images//tools/forum/arrow.gif Soundararajan V
  5. Hello, Consider i'm using jasper reports in struts2 environment. Now I want to save the generated report file automatically when the action called. How to use the "exportParameters" parameter in action class and struts.xml for generating & save the report automatically.. Regards, ../../../themes/jasper/images//tools/forum/arrow.gif Soundar V
  6. Hello, I am using the jasper reports in struts2 framework. Consider, I've an action class which contains the dataSource(i.e a list) and the necessary parameters... In my struts.xml like <action name="masterAction" class="real.MasterAction"> <result name="SUCCESS" type="jasper"> <param name="location">/page/DspGrpBasedReport.jasper</param> <param name="dataSource">plist</param> <param name="format">PDF</param> </result> <result name="FAILURE">/Page2.jsp</result> </action> Now, if i invoke this action, it runs and generated the PDF in the same browser window. But I want this PDF to save in my local system(where ever i specify the location) also automatically. --------> If I set the parameter contentdisposition = attachment, then it asks everytime to download/open the file. But I dont want to asking the location to save/open instead of saving the generated file wherever i specified..... <param name="contentDisposition">attachment</param> In other words, Whenever i invoke the action, the generated PDF File automatically save in the local machine(Where i to specify for eg., UNDER C:Reports). Regards, ../../../themes/jasper/images//tools/forum/arrow.gif Soundararajan V
  7. Hello, Consider, i have a master Report which contains a subreport and i designed it through ireport 3.7.1. I fill the report through a DAO(datasource) object. I create a field with the class , "org.apache.struts2.views.jasperreports.ValueStackDataSource" type. (Ie) <field name="addressInfo" class="org.apache.struts2.views.jasperreports.ValueStackDataSource"/> I can compile and run it from outside the ireport. But I want to compile it through ireport. How / Where can i import or add or mention , such kind of external jar(s ) [ E.g "struts2-jasperreports-plugin-2.1.6.jar" ] in ireport . How to compile this type, through iReport. Regards, Soundararajan V Post Edited by me_vsoundar at 04/29/2010 13:19
  8. Hello, The ".jasper" files are similar to ".class" file. When run the application, jasper files are important, bcoz, the compiler needs the jasper files only not the jrxml. if u can run an application without jrxml but not .jasper. so compile the jrxml and put the jasper in the appropriate location and run it. Bye
  9. Hello, I have used jasper reports in struts2 framework. Consider, I have a master Report called "Master.jrxml" with multiple subreports. I placed all the subreports one - by - one inside the detail part. I used a DAOlist(dataSource) for filling the jasper. It works fine until 5 subreports. If i add one subreport and run, it throws some exception like index 0 size 0... ( i added the error below this msg). But if i put one sub report per one detail then it works fine. Is this is the correct solution for the problem? (creating a new detail band for every subreport?). ERROR: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 java.util.ArrayList.RangeCheck(Unknown Source) java.util.ArrayList.remove(Unknown Source) com.opensymphony.xwork2.util.CompoundRoot.pop(CompoundRoot.java:36) com.opensymphony.xwork2.ognl.OgnlValueStack.pop(OgnlValueStack.java:379) org.apache.struts2.views.jasperreports.ValueStackDataSource.next(ValueStackDataSource.java:126) net.sf.jasperreports.engine.fill.JRFillDataset.advanceDataSource(JRFillDataset.java:861) net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:779) net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1448) net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:108) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:923) net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845) net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:561) net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205) java.lang.Thread.run(Unknown Source) Regars, ../../../themes/jasper/images//tools/forum/arrow.gif Soundararajan V Code:
  10. Hello, I've a problem when place the jasper files outside the project. Consider, If I use the jasper in Struts2 applications and the masterReport jasper (consider Master1.jasper) be placed inside the webcontent, then it is working fine.(I tell the location as a relative path in the struts.xml file.) Suppose, if i want to place the jasper files outside of my web application, i.e other Drive. Now i want to run my application with the template which was placed outside.. What to give the location in my "struts.xml"...? And, How i indicate the relative path instead of "absolute path" in my master Report. Is it possible to give the relative path.? ../../../themes/jasper/images//tools/forum/arrow.gif Soundararajan V Post Edited by me_vsoundar at 04/29/2010 05:36
  11. Thanks a lot........ Regards ../../../themes/jasper/images//tools/forum/arrow.gif Soundarararajan V.
  12. Hello, I designed a jasper report through ireport. The report has some fields. consider, "Remarks" is one of the field. This textfield has a height and width defined. suppose if the text has a large amount of data, then the rest of values are truncated. But i want to display it also. so how to set the dynamic height for a textfield when it overflows... If U know the way, please tell me. Regards, Soundararajan v
  13. Hello, I designed a jasper report through ireport. The report has some fields. consider, "Remarks" is one of the field. This textfield has a height and width defined. suppose if the text has a large amount of data, then the rest of values are truncated. But i want to display it also. so how to set the dynamic height for a textfield when it overflows... If U know the way, please tell me.
×
×
  • Create New...