[nbusers] Re: Jasper Reports Error ..Anybody Plz Solve This

  • From: Lloyd Meinholz < >
  • To:
  • Subject: [nbusers] Re: Jasper Reports Error ..Anybody Plz Solve This
  • Date: Mon, 8 Mar 2010 07:06:56 -0500

It may be worth just downloading and installing the iReport bundle <http://jasperforge.org/projects/ireport> instead of installing it as a plugin just to see if that makes a difference.

Lloyd


On Fri, Mar 5, 2010 at 6:08 AM, spk < "> > wrote:
Hi...This is Sameer..
I have installed netbeans 6.5 on my pc & plugin for jasper reports 2.0.0 & Jasper.jar fiel of 3.5.2 version ......

Here is the code

package coop.reports;
import coop.reports.Report1;
import java.awt.Container;
import java.util.HashMap;
import java.util.Map;
import javax.swing.JFrame;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.swing.JRViewer;
import net.sf.jasperreports.swing.JRViewer.*;
import net.sf.jasperreports.view.JasperViewer;

/**
 *
 */
public class Report1 extends JFrame{

String reportSource="F:/NetBeans 6.5.1 Workspace/Cooper/CooperHr/src/coop/reports/Report1.jrxml";
String reportDest="F:Reports/Report1.html";
   public Report1() {
       Map<String, Object> params=new HashMap<String, Object>();
       params.put("reportTitle", "Recruitment Report");
params.put("author", "Mr Cooper");
params.put("startDate", (new java.util.Date()).toString());

       try {
        JasperReport jasperReport=JasperCompileManager.compileReport(reportSource);

        JasperPrint jasperPrint=JasperFillManager.fillReport(jasperReport, params,new JREmptyDataSource());
           //JasperExportManager.exportReportToHtmlFile(jasperPrint,reportDest);
        JasperExportManager.exportReportToPdf(jasperPrint);
           //JasperViewer.viewReport(jasperPrint);
     JRViewer viewer=new JRViewer(jasperPrint);
Container c=getContentPane();
c.add(viewer);

       } catch (JRException e) {
       System.out.println(e.getMessage());
       }
setBounds(10,10, 600,500);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
   }

   public static void main(String str[])
   {
Report1 r=new Report1();
r.show(true);
r.setEnabled(true);

   }



}
....
I m getting this error.

Language "null" not supported by this report compiler.
Expecting "java" instead.
..Please help me .i hav already added jasper.jar file latest version in project liabrary..& liabrary  manager....


Thanx in advance....

Sameer

------------------------
Sam







[nbusers] Jasper Reports Error ..Anybody Plz Solve This

spk 03/05/2010

[nbusers] Re: Jasper Reports Error ..Anybody Plz Solve This

Don Millhofer 03/05/2010

[nbusers] Jasper Reports Error ..Anybody Plz Solve This

spk 03/08/2010

[nbusers] Re: Jasper Reports Error ..Anybody Plz Solve This

Lloyd Meinholz 03/08/2010

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close