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

mfa

Members
  • Posts

    29
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by mfa

  1. Sir I create pdf through this code but sir how I open this pdf

    Automatically

     

     

    Connection conn = null ;

    Statement msqlStatement = null ;

    ResultSet mrs = null ;

    Connection mconn = null ;

    try {

    String mfat = this.accbalDataProvider.getCachedRowSet().getDataSourceName();

    javax.naming.Context mctx = new javax.naming.InitialContext() ;

    DataSource mds = (DataSource)mctx.lookup(mfat);

    Connection mcon= mds.getConnection();

    mcon.setAutoCommit(false) ;

    JasperPrint jasperPrint = JasperManager.fillReport("C:/mfa.jasper",null,mcon);

    JasperManager.printReportToPdfFile(jasperPrint, "c:/ddfahimaami.pdf");

    JasperExportManager.exportReportToHtmlFile(jasperPrint, "c:/ddfahimaami.html");

    JasperExportManager.exportReportToHtmlFile(jasperPrint, "c:/ddfahimaami.html");

     

     

    Please give me idea how I open pdf file

     

    Thank’s

    Aamir

  2. hi master

    sir i use this code for create the pdf

     

    ExternalContext econtext = getExternalContext();

    InputStream stream = econtext.getResourceAsStream(PREFIX);

    try {

    JRResultSetDataSource mcon = new JRResultSetDataSource(getSessionBean1().getChartofaccRowSet());

    JasperPrint jasperPrint = null;

    jasperPrint = JasperFillManager.fillReport(stream, null, mcon);

    JRExporter exporter = null;

    HttpServletResponse response = (HttpServletResponse)econtext.getResponse();

    FacesContext fcontext = FacesContext.getCurrentInstance();

    exporter = new JRPdfExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

    exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,

    response.getOutputStream());

    exporter.exportReport();

    fcontext.responseComplete();

    } catch (Exception ex) {

    log(" Error Description" , ex);

    error("Error counting rows: " + ex.getMessage() );

    error("Error counting rows: " + ex ); }

     

    sir this code not give any error but also not create /display the pdf

    i try to find the where problem occurred i get textfiled and send some value after one by one line

    like is this

     

    first time try

     

    JRResultSetDataSource mcon = new JRResultSetDataSource(getSessionBean1().getChartofaccRowSet());

    textField2.setValue(PREFIX);

     

    is given me right result and show /WEB-INF/reports/mfa.jasper in textfield2

     

    second time

     

    jasperPrint = JasperFillManager.fillReport(stream, null, mcon);

    textField2.setValue(PREFIX);

     

    when i press button second time this time page not give me result in textfield2 and show blank it means

     

    only this line have error but what i could not foud out jasperPrint = JasperFillManager.fillReport(stream, null, mcon);

     

    use see my code and give me idea or solution of my problem

     

     

    thank’s

    aamir

  3. sir when i build my projct then output window give me error in build-impl.xml file on this line

     

    <copy file="${libs.JasperReports127.classpath.libfile.12}" todir="${build.web.dir.real}/WEB-INF/lib"/>

     

    and full error is than in output windows

     

     

    library-inclusion-in-archive:

    C:Documents and SettingsAdministratorMy DocumentsCreatorProjectsfahimjaspernbprojectbuild-impl.xml:377: Warning: Could not find file C:Documents and SettingsAdministratorMy DocumentsCreatorProjectsfahimjasper${libs.JasperReports127.classpath.libfile.12} to copy.

    BUILD FAILED (total time: 0 seconds)

     

     

    please give me idea how i remove error from build-impl.xml:377:

     

    and which file are missing

     

     

    thankis you

     

    aamir

  4. sir when i build my projct then output window give me error in build-impl.xml file on this line

     

    <copy file="${libs.JasperReports127.classpath.libfile.12}" todir="${build.web.dir.real}/WEB-INF/lib"/>

     

    and full error is than in output windows

     

     

    library-inclusion-in-archive:

    C:Documents and SettingsAdministratorMy DocumentsCreatorProjectsfahimjaspernbprojectbuild-impl.xml:377: Warning: Could not find file C:Documents and SettingsAdministratorMy DocumentsCreatorProjectsfahimjasper${libs.JasperReports127.classpath.libfile.12} to copy.

    BUILD FAILED (total time: 0 seconds)

     

     

    please give me idea how i remove error from build-impl.xml:377:

     

    and which file are missing

     

     

    thankis you

     

    aamir

  5. sir i use this code for without database report

     

    jasperPrint = JasperFillManager.fillReport(stream, new HashMap(), new JREmptyDataSource());

     

    and comple then output window give me this error

     

     

    C:Documents and SettingsAdministratorMy DocumentsCreatorProjectswithoutdatasourceireportsrcwithoutdatasourceireportPage1.java:390: unreported exception net.sf.jasperreports.engine.JRException; must be caught or declared to be thrown

    jasperPrint = JasperFillManager.fillReport(stream, new HashMap(), new JREmptyDataSource());

    1 error

    C:Documents and SettingsAdministratorMy DocumentsCreatorProjectswithoutdatasourceireportnbprojectbuild-impl.xml:233: The following error occurred while executing this line:

    C:Documents and SettingsAdministratorMy DocumentsCreatorProjectswithoutdatasourceireportnbprojectbuild-impl.xml:122: Compile failed; see the compiler error output for details.

    BUILD FAILED (total time: 13 seconds)

     

     

     

    see all error and

     

    plese give me idea

     

     

    thank's

     

    aamir

  6. hi mster

    sir i tyr to create pdf with out database blank

     

    for that i use this code

     

     

    String reportSource = "./WEB-INF/reports/test.jasper";

    String reportDest = "./reports/test.html";

    ExternalContext econtext = getExternalContext();

    InputStream stream = econtext.getResourceAsStream(reportSource);

    JasperPrint jasperPrint = null;

    jasperPrint = JasperFillManager.fillReport(stream, null,null);

     

    //JasperExportManager.exportReportToPdfFile(stream, "simple_report.pdf");

     

    JRExporter exporter = null;

    HttpServletResponse response = (HttpServletResponse)econtext.getResponse();

    FacesContext fcontext = FacesContext.getCurrentInstance();

    exporter = new JRPdfExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

    // exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream());

    //exporter.exportReport();

    fcontext.responseComplete();

     

     

     

     

    but sir only this line give me error

     

     

    jasperPrint = JasperFillManager.fillReport(stream, null,null);

     

     

     

    please give me idea how i get pdf

     

     

    thanks'

    aamir

  7. hi master

    sir i want show the group total when i use code

     

    $F{EMPCON} this in variable that give me error

     

    sir how i chnge the field type or data type

    in variable

     

     

    i try this

     

    $F{EMPCON}.min( java.math.BigDecimal )

     

    but this give me error

     

     

    please give me idea how i get group total and how i change data type

     

     

     

    thank's

     

    aamir

  8. hi mster

    sir i use oracle with ireport

    but when i use variable for group total

    this is my table field

    $F{UNICON} i check the type that give me BigDecimal i change with integer

     

    and that variable i use $V{mfatt} type is integer

    but when i compile that give me error

     

    it.businesslogic.ireport.gui.logpane.ProblemItem@f0f875

     

    Cannot cast from BigDecimal to Integer Line

     

    48, Column 23 /jasperReport/variable

     

    [1]/variableExpression[1]

     

     

    please give me idea how i get field fotal

    and how i change BigDecimal with integer and where i write code

     

    thank's

     

    aamir

  9. sir i use oracle with ireport

    but when i use variable for group total

    this is my table field

    $F{UNICON} i check the type that give me BigDecimal i change with integer

     

    and that variable i use $V{mfatt} type is integer

    but when i compile that give me error

     

    it.businesslogic.ireport.gui.logpane.ProblemItem@f0f875

     

    Cannot cast from BigDecimal to Integer Line

     

    48, Column 23 /jasperReport/variable

     

    [1]/variableExpression[1]

     

     

    please give me idea how i get field fotal

    and how i change BigDecimal with integer and where i write code

     

    thank's

     

    aamir

  10. sir i import all rlated class

     

     

    import com.sun.rave.web.ui.appbase.AbstractPageBean;

    import com.sun.rave.web.ui.component.Body;

    import com.sun.rave.web.ui.component.Form;

    import com.sun.rave.web.ui.component.Head;

    import com.sun.rave.web.ui.component.Html;

    import com.sun.rave.web.ui.component.Link;

    import com.sun.rave.web.ui.component.Page;

    import javax.faces.FacesException;

    import com.sun.rave.web.ui.component.Button;

     

    import java.util.*;

    import javax.servlet.*;

    import javax.servlet.http.*;

    import java.io.*;

    import javax.imageio.*;

    import java.awt.image.*;

    import java.awt.*;

     

     

     

    use this code in button press event

     

    public String button1_action() {

     

    InputStream forms = getServletContext().getResourceAsStream("/mfa.jasper");

     

    return null;

    }

     

     

     

     

    but sir this line give me error

     

    i need send jasperviewer to client by streem

    sir how i use streem

     

    please send me code how i send jasperviewer to client through streem

     

     

    thank

  11. hi master

     

     

     

    Sir I use sun java studio creater I successfully call JasperViewer at server side when I run my application at client side JasperViewer. Open automatically at server side not JasperViewer open at client side

     

    Please give me idea how I open JasperViewer at client side

     

    Thank’s

     

     

    Aamir

  12. Hi master

    Sir I success to create to p6df file and call mfa.jasper file in this code

    JasperViewer.viewReport(jasperPrint,false);

     

    See my full code for calling mfa.jasper and createin pdf

     

    Connection conn = null ;

    Statement msqlStatement = null ;

    ResultSet mrs = null ;

    Connection mconn = null ;

    try {

    String mfat = accbalDataProvider.getCachedRowSet().getDataSourceName();

    javax.naming.Context mctx = new javax.naming.InitialContext() ;

    DataSource mds = (DataSource)mctx.lookup(mfat);

    Connection mcon= mds.getConnection();

    mcon.setAutoCommit(false) ;

    JasperPrint jasperPrint = JasperManager.fillReport("C:/Mfa.jasper",null,mcon);

    JasperManager.printReportToPdfFile(jasperPrint, "c:/fahimaami.pdf");

    } catch (Exception ex) {

    log(" Error Description" , ex);

    error("Error counting rows: " + ex.getMessage() );

    error("Error counting rows: " + ex );

    }

     

    sir my first question

    1. I create the pdf file but not show how I show pdf file

     

    Question no. 2 .

     

    sir this code calling mfa.jasper and createin pdf only in sever not show mfa.jasper in client side i call this page in inter net or office network or local network

    I use this link

     

    http://fahim:29080/WebApplication15/

     

    that link run my page when I press button then page create the c:/fahimaami.pdf in server c: drive not create client c: drive or create server side not create client side

     

    and open JasperViewer.viewReport(jasperPrint,false); file in server side not onpen mfa.jasper file in client side

     

    please give me idea how I open mfa.jasper in client side or client computer

     

    thank’s

     

    aamir

  13. sir thank's for your reply i use your guid line and sucess

    i use this code

     

     

     

    Connection conn = null ;

    Statement msqlStatement = null ;

    ResultSet mrs = null ;

    Connection mconn = null ;

    try {

    String mfat = accbalDataProvider.getCachedRowSet().getDataSourceName();

     

    javax.naming.Context mctx = new javax.naming.InitialContext() ;

     

    DataSource mds = (DataSource)mctx.lookup(mfat);

    Connection mcon= mds.getConnection();

    mcon.setAutoCommit(false) ;

    JasperPrint jasperPrint = JasperManager.fillReport("C:/Mfa.jasper",null,mcon);

     

    JasperManager.printReportToPdfFile(jasperPrint, "c:/BasicReport.pdf");

     

    } catch (Exception ex) {

    log(" Error Description" , ex);

    error("Error counting rows:" + ex.getMessage));

    error("Error counting rows: " + ex );

    }

     

     

    jasper create the BasicReport.pdf file and save in c:

     

    but sir how i show this file throw coding i use

     

    JasperViewer.viewReport(jasperPrint); for show the report

    sir JasperViewer show the file yes but not close the JasperViewer i press the close button but that not close the JasperViewer

     

    please give me idea how i show or view or call the pdf file and how i close the JasperViewer

     

    thank's

     

    aamir

  14. sir i use sun java studio creater with oracle 10g an i flow your code and use this code on button press event

     

    Connection conn = null ;

    log("*********** connecting");

    try {

    javax.naming.Context ctx = new javax.naming.InitialContext() ;

    DataSource ds = (DataSource)ctx.lookup(" java:comp/env/jdbc/datasource1" ) ;

    conn = ds.getConnection() ;

    } catch (Exception ex) {

    error(" Error counting rows: " + ex.getMessage() );

    log(" Error counting rows: " + ex.getMessage() );

    }

    JasperReport jasperReport;

    JasperPrint jasperPrint;

    log("compiling report");

    try {

    jasperReport = JasperCompileManager.compileReport("C:/mfa.jasper");

    } catch (Exception ex) {

    log(" ********* Error compiling report: " + ex.getMessage() );

    }

    return null;

    }

     

     

     

    but system not give me result

     

    then i see in view server log then i found this error

     

     

    main error

     

     

    [#|2007-07-04T10:06:03.159+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042:Status of dynamic reconfiguration event processing:[runtime_error]|#]

     

    [#|2007-07-04T10:06:03.222+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- reference-removed WebApplication17]|#]

     

    [#|2007-07-04T10:06:03.284+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]

     

    [#|2007-07-04T10:06:04.472+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5109: EJBC - START of EJBC for [WebApplication17]|#]

     

    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Processing beans ...|#]

     

    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5110: EJBC - END of EJBC for [WebApplication17]|#]

     

    [#|2007-07-04T10:06:06.378+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Total Deployment Time: 2891 msec, Total EJB Compiler Module Time: 31 msec, Portion spent EJB Compiling: 1%

    Breakdown of EJBC Module Time: Total Time for EJBC: 31 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),

    |#]

     

    [#|2007-07-04T10:06:06.472+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|deployed with moduleid = WebApplication17|#]

     

    [#|2007-07-04T10:06:06.644+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- reference-added WebApplication17]|#]

     

    [#|2007-07-04T10:06:06.706+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]

     

    [#|2007-07-04T10:06:06.722+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- deploy web/WebApplication17]|#]

     

    [#|2007-07-04T10:06:06.753+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=11;|WEB0100: Loading web module [WebApplication17] in virtual server [server] at [/WebApplication17]|#]

     

    [#|2007-07-04T10:06:06.769+0500|SEVERE|sun-appserver-pe8.2|org.apache.catalina.core.StandardContext|_ThreadID=11;|error stopping

    LifecycleException: Manager has not yet been started

     

     

     

     

    ****************************************************************

    full server log file

     

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:242)

    at sun.security.provider.PolicyFile.addPermissions(PolicyFile.java:1403)

    at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1307)

    at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1270)

    at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1211)

    at sun.security.provider.PolicyFile.implies(PolicyFile.java:1166)

    at com.sun.enterprise.security.provider.PolicyWrapper.implies(PolicyWrapper.java:135)

    at java.security.ProtectionDomain.implies(ProtectionDomain.java:195)

    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:249)

    at java.security.AccessController.checkPermission(AccessController.java:427)

    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

    at java.lang.SecurityManager.checkRead(SecurityManager.java:871)

    at java.io.File.exists(File.java:700)

    at com.sun.enterprise.admin.server.core.channel.RMIClient.checkServerStatus(RMIClient.java:373)

    at com.sun.enterprise.admin.server.core.channel.RMIClient.setRestartNeeded(RMIClient.java:354)

    at com.sun.enterprise.admin.event.RRPersistenceHelper.setRestartRequired(RRPersistenceHelper.java:98)

    at com.sun.enterprise.admin.event.RRPersistenceHelper.setRestartRequiredForServer(RRPersistenceHelper.java:75)

    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:152)

    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)

    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)

    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:283)

    at com.sun.enterprise.deployment.phasing.StopPhase.runPhase(StopPhase.java:126)

    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)

    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:639)

    at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:409)

    at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:444)

    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:725)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305)

    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360)

    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)

    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)

    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)

    at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)

    at $Proxy1.invoke(Unknown Source)

    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)

    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)

    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)

    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)

    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

    at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)

    at java.security.AccessController.doPrivileged(Native Method)

    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)

    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)

    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)

    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)

    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)

    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)

    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)

    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)

    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)

    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)

    |#]

    [#|2007-07-04T10:06:03.159+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042:Status of dynamic reconfiguration event processing:[runtime_error]|#]

    [#|2007-07-04T10:06:03.222+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- reference-removed WebApplication17]|#]

    [#|2007-07-04T10:06:03.284+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]

    [#|2007-07-04T10:06:04.472+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5109: EJBC - START of EJBC for [WebApplication17]|#]

    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Processing beans ...|#]

    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5110: EJBC - END of EJBC for [WebApplication17]|#]

    [#|2007-07-04T10:06:06.378+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Total Deployment Time: 2891 msec, Total EJB Compiler Module Time: 31 msec, Portion spent EJB Compiling: 1%

    Breakdown of EJBC Module Time: Total Time for EJBC: 31 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),

    |#]

    [#|2007-07-04T10:06:06.472+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|deployed with moduleid = WebApplication17|#]

    [#|2007-07-04T10:06:06.644+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- reference-added WebApplication17]|#]

    [#|2007-07-04T10:06:06.706+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]

    [#|2007-07-04T10:06:06.722+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041:Sent the event to instance:[ModuleDeployEvent -- deploy web/WebApplication17]|#]

    [#|2007-07-04T10:06:06.753+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=11;|WEB0100: Loading web module [WebApplication17] in virtual server [server] at [/WebApplication17]|#]

    [#|2007-07-04T10:06:06.769+0500|SEVERE|sun-appserver-pe8.2|org.apache.catalina.core.StandardContext|_ThreadID=11;|error stopping

    LifecycleException: Manager has not yet been started

    at org.apache.catalina.session.StandardManager.stop(StandardManager.java:704)

    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4675)

    at org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5643)

    at org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1418)

    at com.sun.jmx.mbeanserver.BaseMetaDataImpl.preDeregisterInvoker(BaseMetaDataImpl.java:122)

    at com.sun.jmx.mbeanserver.MetaDataImpl.preDeregisterInvoker(MetaDataImpl.java:251)

    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:377)

    at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:527)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)

    at $Proxy1.unregisterMBean(Unknown Source)

    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.unregisterMBean(SunoneInterceptor.java:324)

    at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4228)

    at com.sun.enterprise.web.WebModule.start(WebModule.java:241)

    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)

    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)

    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)

    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:646)

    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1331)

    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1040)

    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)

    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:246)

    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)

    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)

    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)

    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)

    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)

    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)

    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)

    at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)

    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)

    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:639)

    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)

    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)

    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305)

    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360)

    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)

    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)

    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)

    at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)

    at $Proxy1.invoke(Unknown Source)

    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)

    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)

    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)

    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)

    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

    at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)

    at java.security.AccessController.doPrivileged(Native Method)

    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)

    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)

    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)

    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)

    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)

    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)

    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)

    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)

    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)

    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)

    |#]

    [#|2007-07-04T10:06:07.987+0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=11;|[ComponentRule]{faces-config/component} Merge(com.sun.rave.web.ui.Time)|#]

    [#|2007-07-04T10:06:08.019+0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)|#]

    [#|2007-07-04T10:06:08.019+0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)|#]

    [#|2007-07-04T10:06:09.222+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]

    [#|2007-07-04T10:06:47.427+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17]*********** connecting|#]

    [#|2007-07-04T10:06:47.442+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17] Error counting rows: null|#]

    [#|2007-07-04T10:06:47.442+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17]compiling report|#]

    [#|2007-07-04T10:06:48.114+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17] ********* Error compiling report: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.|#]

     

     

     

    sir what means of this error

     

    Status of dynamic reconfiguration event processing:[runtime_error]

    Total Deployment Time: 2891 msec, Total EJB Compiler Module Time: 31 msec, Portion spent EJB Compiling: 1%

    Breakdown of EJBC Module Time: Total Time for EJBC: 31 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),

     

     

    please give me idea how i create pdf file

  15. hi master

    sir i try to call create pdf in my project when i complied that system not give me error but when i press button where i write my code and see in view server log that give me this error

     

     

     

    [#|2007-07-01T13:51:10.515+0500|INFO|sun-appserver-pe8.2|javax.enterprise.syste m.tools.admin|_ThreadID=11;|ADM1042:Status of dynamic reconfiguration event processing:[runtime_error]|#]

    [#|2007-07-01T13:51:10.579+0500|INFO|sun-appserver-pe8.2|javax.enterprise.syste m.tools.admin|_ThreadID=12;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- reference-removed WebApplication17]|#]

    [#|2007-07-01T13:51:10.658+0500|INFO|sun-appserver-pe8.2|javax.enterprise.syste m.tools.admin|_ThreadID=12;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]

    [#|2007-07-01T13:51:11.391+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.core.classloading|_ThreadID=13;|LDR5203: An error occurred while adding URL [file:/C:/Documents and Settings/Administrator/My Documents/Creator/Projects/WebApplication17/build/web/WEB-INF/lib/log4j.jar] to the EJB class loader. Please check the content of this URL. |#]

    [#|2007-07-01T13:51:11.391+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.core.classloading|_ThreadID=13;|LDR5200:MalformedURLException.

    java.io.IOException

     

     

     

     

    main error is

     

    [#|2007-07-01T13:51:11.391+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.core.classloading|_ThreadID=13;

    |LDR5203: An error occurred while adding URL

    [file:/C:/Documents and Settings/Administrator/My Documents/Creator/Projects/WebApplication17/build/web/WEB-INF/lib/log4j.jar] to the EJB class loader. Please check the content of this URL. |#]

     

    why ejb giv me error and whe log4j.jar give me error that not support to jsp

     

    please give me idea how i solve this error

     

    thank's

     

    aamiir

  16. Hi master

    Sir I use sun java studio creator with oracle and for reporting I use ireport

     

     

    Sir I use this code for creating the pdf file

     

    See my cod

     

     

    public String button1_action() {

    Connection conn = null ;

    log("*********** connecting");

    try {

    javax.naming.Context ctx = new javax.naming.InitialContext() ;

    DataSource ds = (DataSource)ctx.lookup(" java:comp/env/jdbc/datasource1" ) ;

    conn = ds.getConnection() ;

    } catch (Exception ex) {

    error(" Error counting rows: " + ex.getMessage() );

    log(" Error counting rows: " + ex.getMessage() );

    }

     

    JasperReport jasperReport;

    JasperPrint jasperPrint;

     

    log("compiling report");

    try {

    jasperReport = JasperCompileManager.compileReport("C:/mfa.jasper");

     

    } catch (Exception ex) {

    log(" ********* Error compiling report: " + ex.getMessage() );

    }

     

    return null;

    }

     

     

    but compliemanager give me error

     

     

    1. Invalid byte 1 of 1-byte UTF-8 sequence

     

     

    see my error ( Invalid byte 1 of 1-byte UTF-8 sequence ) detail [#|2007-06-16T15:22:44.761+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=21;|WebModule[/WebApplication17] ********* Error compiling report: com.sun.org.apach by mfa

     

     

     

    2. Illegal character in path at index 18:

     

    Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/My Documents/Creator/Projects/WebApplication15/build/web/WEB-INF/lib/log4j-core.jar

    at java.net.URI$Parser.fail(URI.java:2809)

    at java.net.URI$Parser.checkChars(URI.java:2982)

    at java.net.URI$Parser.parseHierarchical(URI.java:3066)

    at java.net.URI$Parser.parse(URI.java:3014)

    at java.net.URI.(URI.java:578)

    at com.sun.enterprise.loader.EJBClassLoader$URLEntry.init(EJBClassLoader.java:848)

    ... 16 more

    |#]

     

     

     

     

    Please give me idea how I create pdf file

     

    Thank’s

     

    aamir

  17. Hi master

    Sir I use sun java studio creator with oracle and for reporting I use ireport

     

     

    Sir I use this code for creating the pdf file

     

    See my cod

     

     

    public String button1_action() {

    Connection conn = null ;

    log("*********** connecting");

    try {

    javax.naming.Context ctx = new javax.naming.InitialContext() ;

    DataSource ds = (DataSource)ctx.lookup(" java:comp/env/jdbc/datasource1" ) ;

    conn = ds.getConnection() ;

    } catch (Exception ex) {

    error(" Error counting rows: " + ex.getMessage() );

    log(" Error counting rows: " + ex.getMessage() );

    }

     

    JasperReport jasperReport;

    JasperPrint jasperPrint;

     

    log("compiling report");

    try {

    jasperReport = JasperCompileManager.compileReport("C:/mfa.jasper");

     

    } catch (Exception ex) {

    log(" ********* Error compiling report: " + ex.getMessage() );

    }

     

    return null;

    }

     

     

    but compliemanager give me error

     

     

    1. Invalid byte 1 of 1-byte UTF-8 sequence

     

     

    see my error ( Invalid byte 1 of 1-byte UTF-8 sequence ) detail [#|2007-06-16T15:22:44.761+0500|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=21;|WebModule[/WebApplication17] ********* Error compiling report: com.sun.org.apach by mfa

     

     

     

    2. Illegal character in path at index 18:

     

    Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/My Documents/Creator/Projects/WebApplication15/build/web/WEB-INF/lib/log4j-core.jar

    at java.net.URI$Parser.fail(URI.java:2809)

    at java.net.URI$Parser.checkChars(URI.java:2982)

    at java.net.URI$Parser.parseHierarchical(URI.java:3066)

    at java.net.URI$Parser.parse(URI.java:3014)

    at java.net.URI.(URI.java:578)

    at com.sun.enterprise.loader.EJBClassLoader$URLEntry.init(EJBClassLoader.java:848)

    ... 16 more

    |#]

     

     

     

     

    Please give me idea how I create pdf file

     

    Thank’s

     

    aamir

  18. sir i am using sun java studio creater

    in studio creater i connect with derby with code

     

    database URL =jdbc:derby://localhost:21527/sample

     

    driver class = org.apache.derby.jdbc.ClientDriver

     

    user id =travel

    pwd = travel

     

    sir i eassly connect oracle with ireport

     

    i try connect with derby but i did't get result

     

    please guid me how i connect ireport with derby

     

    which driver class i use and where i find i thata class

     

    thamk's

     

    aamir

  19. sir see my code when i

    public String button2_action() {

    Connection conn = null ;

    Statement msqlStatement = null ;

    ResultSet mrs = null ;

    Connection mconn = null ;

    try {

    String mfat = accbalDataProvider.getCachedRowSet().getDataSourceName();

    javax.naming.Context mctx = new javax.naming.InitialContext() ;

    DataSource mds = (DataSource)mctx.lookup(mfat);

    Connection mcon= mds.getConnection();

    mcon.setAutoCommit(false) ;

    msqlStatement = mcon.createStatement() ;

    mrs = msqlStatement.executeQuery("select count(*) from accbal" ) ;

    mrs.next() ;

    int rows = mrs.getInt(1) ;

    mcon.commit() ;

    info("Rows in table TRIP: " + Integer.toString(rows)) ;

     

    m1.setValue("jljljk"); " till this setp run fine

     

    JasperPrint jasperPrint = JasperManager.fillReport("C:/Program Files/JasperSoft/iReport-1.3.3/fahim.jasper",null,mcon);

     

    " in this setp it not give me any result"

     

    m1.setValue(Integer.toString(rows));

     

     

    JasperManager.printReportToPdfFile

    (jasperPrint, "BasicReport.pdf");

    } catch (Exception ex) {

    error("Error counting rows: " + ex.getMessage() );

    }

    return null;

    }

     

     

     

    sir after this line my project not give me run

     

    JasperPrint jasperPrint = JasperManager.fillReport("C:/Program Files/JasperSoft/iReport-1.3.3/fahim.jasper",null,mcon);

     

     

    please give me idea

  20. Sir I use sun java studio creater under windows

     

    Then sir what I use

     

    JasperPrint jasperPrint = JasperManager.fillReport("c:/fahimjasper/fahim.jasper",null,mds);

    JasperManager.printReportToPdfFile(jasperPrint, "BasicReport.pdf");

    Or

     

    JasperPrint jasperPrint = JasperManager.fillReport("c://fahimjasper//fahim.jasper",null,mds);

    JasperManager.printReportToPdfFile(jasperPrint, "BasicReport.pdf");

     

    Please give me idea which code I use

     

    Thank’s

     

    Aamir

×
×
  • Create New...