Rajan
|
Posted: 03/21/2006, 3:08 AM |
|
hi,
how to integrate JASPERREPORT with java SWING application?
My problem is I have a Form which contains textfields and is created by using swing. I have to generate jasperreport by getting the textfield value.
Pls urgent send me any sample code if any body knows
Thanks in advance.
Rgds
Rajan.
|
|
|
Doan
|
Posted: 03/23/2006, 11:11 PM |
|
Raj,
>I have to generate jasperreport by getting the textfield value.
>Pls urgent send me any sample code if any body knows
I was wonder to help you out with this. But your question doesn't make sense at all.
I guess, may be you want this situation:
- Have a swing application.
- Have a text box, you enter some value in the text box.
- Hit the Report button
The system need to capture the value entered from the text box, performing Querying for data from database base on the value form the text box, generate the report and fill it in report view?
If this is really the case you want, then it's simple to implement by passing the value of the text box as a paramater to the reportviewer (JRViewer) at run time.
|
|
|
celine
Posts: 1
|
Posted: 03/24/2006, 2:09 AM |
|
Hi,
I too strguling because i dont know how to access ireport from jsp .I am using tomcat4.1 server. I can able to create a report using ireport.But problem is don't know how to call this ireport from jsp code.Can u please help me.
U can drop me a mail atcelineselvam@yahoo.com
or
celine.selvam@gmail.com
Help me please
Thanks in advance
Thanks and Regards,
celine
|
|
|
chem leakhina
|
Posted: 04/01/2006, 8:13 PM |
|
I want to create web report in JSP.How can I do? Can u tel me some step and send to me some sample file?
|
|
|
peterr
Posts: 5971
|
Posted: 04/01/2006, 9:46 PM |
|
Use CodeCharge Studio.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Dinesh
|
Posted: 04/17/2006, 4:54 AM |
|
Hello,
I just started the jasper report in my web application
my problem is that the report is generating through simple java program
with main method, but not with jsp or other class means i am getting a lot of errors when i generate the report through simple class or servlet/jsp.
I think any problem with jar files or class path releated . So would you please help me where should i place the jasper jar file and how i should setting the classpath. Please guide me regarding this.
Thanks in advance
Regards,
Dinesh
my mail calldinesh_jat@yahoo.co.in
|
|
|
Dinesh
|
Posted: 04/17/2006, 4:56 AM |
|
Hello,
I just started the jasper report in my web application
my problem is that the report is generating through simple java program
with main method, but not with jsp or other class means i am getting a lot of errors when i generate the report through simple class or servlet/jsp.
I think any problem with jar files or class path releated . So would you please help me where should i place the jasper jar file and how i should setting the classpath. Please guide me regarding this.
Thanks in advance
Regards,
Dinesh
my mail id calldinesh_jat@yahoo.co.in
|
|
|
deepak
|
Posted: 06/29/2006, 4:03 AM |
|
how can i call the jasper reports from java program?
|
|
|
P
|
Posted: 07/10/2006, 10:59 AM |
|
can anybody tell me how to call ireports from jsp page?
Thanks
|
|
|
gayathri
|
Posted: 07/25/2006, 12:46 AM |
|
if i include this package " import net.sf.jasperreports.engine.*; "
its showing me the following error....
can anyone help me out
C:\Documents and Settings\Administrator\Desktop\gayathri-examples\exforjdbc.java:6: package net.sf.jasperreports.engine does not exist
import net.sf.jasperreports.engine.*;
|
|
|
Neelima
|
Posted: 08/11/2006, 3:02 AM |
|
hi bhaskar,
At present i have to work with iReport 1.2.5 and JSP's . i want to know how to link jsp page to the iReport. if u know the details please mail to my id . s_neelima@rediffmail.com.
Thanks
Neelima
Quote Bhaskar:
Hi
I have a problem relate to jasper report, i have tried some solutions but i 'm still not solve this problem.
It's a web application, i used iReport, tomcat 5.0 integrate in Eclipse. When I call Report from JSP page, in output I am getting null values only.
I can't understand, actually where is the problem.
If anyone may knows that solution, please replly immediately to "kbr_java@rediffmail.com".
Thanks and Regards
Bhaskara Rao
|
|
|
alakesh
|
Posted: 08/17/2006, 11:49 PM |
|
Quote :plz send me the coding for calling iReport using JSP code
i am already try it ....... but not do it properly
|
|
|
alakesh
|
Posted: 08/20/2006, 12:32 AM |
|
Quote :i am facing problme running jasperreport using JSP,plz help me
|
|
|
syed
|
Posted: 09/08/2006, 4:04 AM |
|
Hi,
I generated .jasper file using iReport, with Tomcat how can i integrate the report with a JSP page. Also i would like to know the directory structure.
Thanks in advance.
|
|
|
nithi
|
Posted: 09/15/2006, 2:53 AM |
|
hi
this is nihi i created jasper reports in eclipse3.1 i got jrxml and jasper then i integrated in JSP web application but the thing i'm not getting report ,i got page in that i'm getting this error
encountered error while generating reports ,i'm sending following code plz help
nithi
srilata_k@rediffmail.com
|
|
|
nithi
|
Posted: 09/15/2006, 2:54 AM |
|
hi
this is nihi i created jasper reports in eclipse3.1 i got jrxml and jasper then i integrated in JSP web application but the thing i'm not getting report ,i got page in that i'm getting this error
encountered error while generating reports ,i'm sending following code plz help
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
<%@ page import="net.sf.jasperreports.engine.JRException"%>
<%@ page import="net.sf.jasperreports.engine.JasperCompileManager"%>
<%@ page import="net.sf.jasperreports.engine.JasperExportManager" %>
<%@ page import="net.sf.jasperreports.engine.JasperFillManager" %>
<%@ page import="net.sf.jasperreports.engine.JasperPrint" %>
<%@ page import="net.sf.jasperreports.engine.JasperReport" %>
<%@ page import="net.sf.jasperreports.engine.data.JRXmlDataSource"%>
<%@ page import="net.sf.jasperreports.engine.data.*"%>
<%@ page import="net.sf.jasperreports.engine.JRParameter" %>
<%@ page import="java.sql.Connection"%>
<%@ page import="java.sql.DriverManager"%>
<%!public static boolean printReport(HttpServletResponse response){JasperReport jr = null ;
JasperPrint jp = null ;
boolean error = true ;
try {
long start = 0 ;
response.reset() ;
response.setContentType("application/pdf");
// java.io.OutputStream outputStream = response.getOutputStream() ;
System.out.println("sunitha");
start = System.currentTimeMillis();
// Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
// System.out.println("sunitha1");
//String url = "jdbc:sqlserver://SERVER:1433;DatabaseName=MIDAS10DB";
// Connection connection = DriverManager.getConnection(url,"Mahesh","server");
// InputStream is = Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").getResourceAsStream("App.jasper") ;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("sunitha1");
String url = "jdbc:odbc:north";
Connection connection = DriverManager.getConnection(url,"sa","sa");
InputStream is = Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").getResourceAsStream("../cust.jasper");
System.out.println("Sunitha __________________________________"+is);
System.out.println("welcome");
if (is == null)
System.out.println("is is null") ;
else
System.out.println("is not null");
System.out.println("Before Fill Report") ;
jp=JasperFillManager.fillReport(is, new HashMap(), connection) ;
System.err.println("Filling time : " + (System.currentTimeMillis() - start)+" msec");
start = System.currentTimeMillis();
java.io.OutputStream outputStream = response.getOutputStream() ;
JasperExportManager.exportReportToPdfStream(jp, outputStream);
System.err.println("Export to pdf time : " + (System.currentTimeMillis() - start)+" msec");
error = false ;
}
catch (JRException e1) {
e1.printStackTrace();
}
catch (IOException ioe) {
System.out.println(ioe);
ioe.printStackTrace() ;
}
catch (Exception cnf){
cnf.printStackTrace() ;
}
return error ;
}
%>
<%
%>
<%
String output="";
boolean error = printReport(response) ;
if (error) {
output ="Encountered Error while running report." ;
%>
<html>
<head>
<title>Jasper Report Demo</title>
</head>
<body bgcolor="#8C92C6">
<center>
<font color="white"> <h2> <%=output%></h2></font>
</center>
</body>
</html>
<%
}
%>
nithi
srilata_k@rediffmail.com
|
|
|
nithi
|
Posted: 09/15/2006, 3:01 AM |
|
hi bhaskar
if solved ur problem (in jsaper reports) plz tell me,i'm expecting soon plzzzz
this is my mail id srilata_k@rediffmail.com
nithi
|
|
|