Jump to content

sruthi

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Everything posted by sruthi

  1. Hello, I have created a Crosstab and filling with JRDataSource;While filling I am getting the following exception: java.lang.ClassCastException: java.lang.String at crosstab_Country_Orders_1169462143531_721779.evaluate(crosstab_Country_Orders_1169462143531_721779:132) at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:186) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:537) at net.sf.jasperreports.engine.fill.JRFillCrosstab$JRFillCrosstabDataset.customEvaluate(JRFillCrosstab.java:637) at net.sf.jasperreports.engine.fill.JRFillElementDataset.evaluate(JRFillElementDataset.java:140) at net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:148); >>When I use the same datasource to fill the main report;I am not getting the error; I am attching the JRXML ; [file name=Crosstab_DataSource_Parameter.jrxml size=21936]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Crosstab_DataSource_Parameter.jrxml[/file] Can any body please let me know the error; Sruthi.
  2. Hello, I have my report like this: R/C Column1 Column2 Row1 Row2 (data filled by Row3 JRDataSource) I guess that I have to use Crossstab.I am not aware of how to use it with JRdatasource.Can anybody tell me if I have to use Crossstab or is there any other way? If I have to use it, then How do I do it?
  3. Hey This is one in which he has given the JRXML File,but does not have any tutorial- http://www.jasperforge.org/index.php?option=com_joomlaboard&func=view&id=18327&catid=8 This is one blog where you can post your questions - http://varungis.blog.com/JasperReport/ If anybody gets to know any tutorial,Please post it in Forum;
  4. Hi ibmsoft, Can this combining of reports be done in JRViewer?I will have to do similar thing,but display in JPanel.So I should use a JRViewer.I went thru the API of JRViewer but did not find this option.Is there a work around?
  5. Hello, I am creating a Jasper Report and exporting it to a PDF file and send it to another person.He should be able to open that and view it in JPanel(Java Swing)i.e JRViewer; Is there any way of creating Jasper Report from a PDF file. Sruthi.
  6. Hello, I need to create Sub report with JRDataSource.I have created the DataSource class and now I need to know How should I fill details DataSource and Report parameter in JRXMl.Can anybody please help. Sruthi.
  7. Hi! Arvind, First you create a frame with button on it: public class MyReport extends JFrame{ public void MyReport(){ JPanel panel; JButton button; MyReport(){ setSize(300, 100); panel=new JPanel(); button=new JButton("Report"); button.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent ae){ if(ae.getSource instanceof JButton){ if(ae.getActionCommand().equals("Report")){ showReport(); } } } }); panel.add(button); getContentPane().add(panel); pack(); setVisible(true); } public void showReport(){ JasperDesign jasperDesign = JRXmlLoader.load(JrxmlFilePath); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); java.sql.Connection con=//write your connection here; print= JasperFillManager.fillReport(jasperReport,hm,con); //Now export this to required output.There are many exporter-Pdf exporter,htmlexporter,csvexporter or simply jasper viewer.For ex:I am using PdfExporter JRPdfExporter exporter=new JRPdfExporter(); //set the output file parameter and jasper print parameter exporter.setParameter(....); exporter.exportReport(); //generates the pdf file that you mentioned in export parameter ; }
  8. Hello EveryBody, I am writing JRXML file and now for the dtd specification to be given at DOC TYPE, declaration I am using the url-"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd".But I was told that I need to save the dtd in my project and give that path.I have iReport tool in which the "C:iReportsrcitbusinesslogicireportdtds" has the dtd files.when I copied it to my project its giving an error in the iReportTemplate.dtd-"text declaration can only appear in ..".Can any body help?
  9. Hello! All, I need to create CrossTab and followed some tutorials,but did not get output.I am getting blank rows.Can anyone please help?
×
×
  • Create New...