Jasper Reports Integration - beta release

Hi guys,
I have finally found the time to release the Jasper Reports Integration package for producing print ready reports.
You can find all the details here: http://daust.blogspot.com/2010/01/jasper-reports-integration-beta-release.html
Anybody is welcome to try the software and join the beta program.
Thanks,
~Dietmar.

Hi Wolfgang,
Now it works as expected!That's the way I like it ;).
I would like to save the report in a user table with a blob field, how can this be achieved?Easy, this is even already part of the test application.
On the Report Tester tab you will find a button called "Get report as BLOB, then display". It calls the following page process:
DECLARE
   l_blob        BLOB;
   l_mime_type   VARCHAR2 (100);
BEGIN
   xlog ('PRC_GET_REPORT_TUNNEL', 'url (orig):' || :p5_report_url);
   -- generate the report and return in BLOB
   xlib_jasperreports.set_report_url (:p5_jasper_report_url);
   xlib_jasperreports.get_report
                                (p_rep_name               => :p5_rep_name,
                                 p_rep_format             => :p5_rep_format,
                                 p_data_source            => :p5_data_source,
                                 p_rep_locale             => :p5_rep_locale,
                                 p_rep_encoding           => :p5_rep_encoding,
                                 p_additional_params      => :p5_additional_params,
                                 p_out_blob               => l_blob,
                                 p_out_mime_type          => l_mime_type
   -- set mime header
   OWA_UTIL.mime_header (ccontent_type      => l_mime_type,
                         bclose_header      => FALSE);
   -- set content length
   HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
   OWA_UTIL.http_header_close;
   -- download the file and display in browser
   WPG_DOCLOAD.download_file (l_blob);
   -- release resources
   DBMS_LOB.freetemporary (l_blob);
   -- stop rendering of APEX page
   apex_application.g_unrecoverable_error := TRUE;
EXCEPTION
   WHEN OTHERS
   THEN
      xlog ('PRC_GET_REPORT_TUNNEL', SQLERRM, 'ERROR');
      RAISE;
END;Once you have the blob you can store it in a database table, done!
There is only one tricky part. Should the Tomcat throw an exception then it will return a html error page (http code 200=ok). The request is perfectly valid but a human can see the error message.
The API should throw an exception on that. A bit tricky once other J2EE servers are supported or the error messages vary.
BTW: do you plan any additional features ?Perhaps, what are you looking for?
Cheers,
~Dietmar.

Similar Messages

  • Jasper Reports Integration - JNDI datasources

    Hello
    I wish to use Jasper Reports to create a few reports with Bar Charts which I send to users via emails from APEX.
    The system versions I am running is:-
    Product Build: 4.1.1.00.23
    CORE 11.2.0.1.0 Production
    NLSRTL Version 11.2.0.1.0 - Production
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    I been installing Jasper Report following http://www.opal-consulting.de/apex/f?p=20090928:4
    In following the instructions I got as far as Tomcat installation point 7 where the JNDI datasourcse is defined.
    I the installations file \conf\Catalina\localhost\JasperReportsIntegration.xml should of been created. In case it has not
    Have I misunderstood the instructions?
    Thanks, Pete

    Hi Pete,
    Yes, you should install iReport to design your reports.
    I'm not completely sure about what you mean with "the format of the classpath". I guess you refer to the "classpath" tab in Tools > Options (?).
    A default installation of iReport does not allow you to create datasources of type Oracle JDBC driver. The JasperReportsIntegration kit includes a lib folder that contains two .jar files (ojdbc14.jar and orai18n.jar). Copy these two files to the following location: C:\Program Files\Jaspersoft\iReport-4.6.0\ireport\modules\ext. Then in iReport, go to Options > Tools and hit the classpath button. Click the button "Add JAR" and select the two .jar files from above. These steps make it possible to create a new datasource of type Oracle JDBC driver. I hope this answers your question. If not, provide more information and I'll get back to you...
    Don't mind the JasperReports Server by the way. The JasperReportsIntegration kit includes all the files you need to install and configure JasperReports.
    Goodbye,
    Nick

  • Apex and Jasper Report Integration

    Hi all,
    If someone was interested to try another way for pdf generation from an apex application can try our Report Chunker based on Jasper Report and now avaiable to download on :
    [http://sourceforge.net/projects/reportchunker/]
    The latest release includes an APEX DEMO APPLICATION.
    Any feedback will be welcome.
    Edited by: NeOGeO on 23-set-2008 1.28

    A few points here.
    Documentation:
    You need to state what permissions are required.
    eg create table, create sequence, create trigger, read/write directory.
    You should also mention the authentication method you use.
    Fortunately I could figure that out myself.
    Now bearing in mind I am your typical target audience, I have no knowledge of Jasper reports, and very little knowledge of java and xml. So I'm now stuck as I don't know what to use for the xml layout or how to write my report.
    At least provide an example xml layout, a example report and a link to where the reports cab be obtained.
    If we need to have anything on the system before we start (eg jasper reports) then this should also be stated (including minimum required version)
    Thats it. Unfortunately I can't go any further until I know more.

  • Jasper Report  Integration Examples

    Hi
    Can any one of you send examples/source/link that shows how to implement jasper report in JAVA .I tried it in google.but i won't wrok. A simple and detailed example that shows finally how a PDF is generated

    Hi
    Can any one of you send examples/source/link that shows how to implement jasper report in JAVA .I tried it in google.but i won't wrok. A simple and detailed example that shows finally how a PDF is generated

  • Jasper report integration in Oracle BPM

    Hello friends
    We'r working on an application using Oracle BPM 11g (11.1.1.5.0)
    What we are looking for is to have the ability to generate reports using iReport (jasper).
    Using help from the previous thread below ,we have been able to call a report without any input parameters and by calling the servlet directly.
    Re: generating jasper reports in Oracle BPM
    What we're trying to do here is to have some input parameters for our report.
    I'm trying to do this using a java class, but haven't found any sample to show me the way and samples I've found didn't work in Oracle BPM
    Can anyone help me with this?
    Thank you

    Hi
    I have finally solved my problem.
    The problem was that I could not send the input parameter to the servlet.
    Here is my code:
    in my java class:
    public String actionRunReport() throws Exception {
            // Add event code here...
            String emp = null;
            if (getEmployeeID().getValue() != null) {
                emp = getEmployeeID().getValue().toString();
            } else {
                emp = "1";
            FacesContext ctx = FacesContext.getCurrentInstance();
            HttpServletRequest request =
                (HttpServletRequest)ctx.getExternalContext().getRequest();
            HttpServletResponse response =
                (HttpServletResponse)ctx.getExternalContext().getResponse();
            request.setAttribute("empId", emp);
            request.getRequestDispatcher(response.encodeURL("/printrrportservlet")).forward(request,
                                                                                            response);
            response.flushBuffer();
            ctx.responseComplete();
            return null;
        }in my servlet:
    public void doPost(HttpServletRequest request,
                           HttpServletResponse response) throws ServletException,
                                                                IOException {
            response.setContentType(CONTENT_TYPE);
            //OutputStream ouputStream = null;
            try {
                Connection conn = Connect.createConnection();
                String reportSource = "C:\\reports\\templates\\guarantees.jrxml";
                InputStream input = new FileInputStream(new File(reportSource));
                JasperDesign design = JRXmlLoader.load(input);
                JasperReport report = JasperCompileManager.compileReport(design);
                Map<String, Object> params = new HashMap<String, Object>();
                params.put("reportTitle", "Guarantees");
                params.put("author", "Milad");
                params.put("startDate", (new java.util.Date()).toString());
                params.put("empId", request.getAttribute("empId"));
                JasperPrint jasperPrint =
                    JasperFillManager.fillReport(report, params, conn);
                OutputStream ouputStream = response.getOutputStream();
                JRExporter exporter = null;
                response.setContentType("application/pdf");
                exporter = new JRPdfExporter();
                exporter.setParameter(JRExporterParameter.JASPER_PRINT,
                                      jasperPrint);
                exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
                                      ouputStream);
                exporter.exportReport();
            } catch (Exception ex) {
                ex.printStackTrace();
        }In jspx page::
    <af:commandButton text="Run report" id="cb1"
       action="#{printBean.actionRunReport}"/>in web.xml:
    <servlet-mapping>
        <servlet-name>PrintrRportServlet</servlet-name>
        <url-pattern>/printrrportservlet</url-pattern>
    </servlet-mapping>

  • Crystal Reports server XI release 2 java Integration - Urgent

    Post Author: premnathk.chn
    CA Forum: JAVA
    Hi,
      I am trying to evaluvate Crystal Reports server XI release 2 and i face problems in integrating it with java. can sombody help me out?
    Also when i try to open a report using INFOVIEW i get a cannot open connection error.
    thank & regards,
    Prem

    What problems exactly are you running into?  Are you getting errors?  Also - the infoview error is most likely that the report can't connect to the database - or that the account that the Page or RAS server is running under can't see the database server.  Try running the page server and RAS server under a user account that has domain privileges
    a programmer learning programming from perl is like a chemisty student learning the definition of "exothermic" with dynamite

  • Integrating Jasper Reports with BPM Inbox

    BPM Dashboard has click able graphics which drill down the Inbox with the filtered results.
    Now we are using Jasper Reports for building Dashboard. We want to implement the same type of drill down functionality with Jasper Charts.
    Does anyone know how to filter the inbox like BPM Dashboard does ?

    More comments...
    When clicked on a chart in BPM Dashboard, it makes an AJAX call to get the updated chart information. While getting the chart information the call also updates the filter criteria in a predefined View. This view should have the required Filter criteria defined.
    After getting the response from the server.. Dashboard re-directs the parent window to a URL which displays the Filtered results.
    Now we are checking on how to make this AJAX call from Jasper report.

  • Open Jasper Report in new page using servlet

    Guys,
    Looks very simple but i am having problem making this process work. I am using 11.1.1.4
    This is my use case:
    - From a employee page, user clicks on a menu item to open report for current employee. I need to pass appropriate report parameters to servlet and open report into new page.
    I can successfully call servlet using commandmenuitem and set request parameters and call servlet from backing bean.... but that doesn't open report in a new page.... any way i can do this?
    Another option i tried was that using gomenuitem and setting target=blank but in that case i need to pass the parameter using servlet url which i like to avoid.(in case i need to pass many parameters in future) (also values will be set on page so i need to generate url when then click the menuitem...... so there are some hoops and loops i need to go through) I don't know a way to pass the request parameter using backing bean to servlet... i don't think it is possible.
    Those are the two approaches i tried.
    If you have any better approach...I would appreciate if you can let me know. (i have searched on internet for two days now.... for the solution)
    -R
    Edited by: polo on Dec 13, 2011 7:22 AM

    Hi,
    Hope following will useful
    http://sameh-nassar.blogspot.com/2009/10/using-jasper-reports-with-jdeveloper.html
    http://www.gebs.ro/blog/oracle/jasper-reports-in-adf/

  • Jasper report s

    Hi can someone plz tell me integration of ireport with Myeclipse
    or how can i use jasper report as i want reports to hav output in pdf and html and i'm using spring/hibernate as persistence .
    thanks in advance.

    Hi Shariff,
    have you already googled for "apex integrate jasper"? It returns several how-to's.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Generate Jasper report in JSP

    Hi all,
    im currently doing some research on jasper. Im totally new to this and wish if somebody can give some tips on how to start off..Below are some of my questions..
    1. After compile and create the report design using iReport, does it means when we've got our XML response from server ,we just feed in the fields accordingly to the .jasper file we've created earlier on OR we have to concurrently design,and compile report and send XML request to server...
    2. Can provide me with some ideas of how to generate jasper report in JSP where the whole process is inclusive of passing XML request to server..retrieving data..formatting..passing result set to XML response ...may i know when is the process of generating jasper start off in between of this?
    Please advise, im really blurred at the moment...
    Thx a million...
    chEers,
    cyunntan

    Probably it�s better to ask it at JasperReports Forums:
    http://sourceforge.net/forum/?group_id=36382

  • How to run multiple sqls in one jasper report

    Hello!
    Is there any one that can help me in integrating/ viewing my xml file to the web. I have my GUI in jsp format, the jsp makes a call to the bean class and then finally bean class hit my reports java class.The report java class generates the report and shows it in the new window.
    The problem is with writing mutiple sql queries and showing the result from multiple sql queires in one report.
    I do not know how to write multiple queries for just 1 report. I can give a simple example of my problem also.
    My report is as follows:
    First Name Middle Name Last name
    Sandeep               Pathak
    Now First and Middle Name come from 1st sql query and Last Name comes from 2nd sql query.
    I want to join the result obtained from both the sql queries in one Jasper Report (not as 2 separate sections but as one section).
    My problem is how to view my report in the web. furthermore, how to make complex query in jasperassistant, like multiple table in one query, because i�m integrating multiple query in one form or sheets of paper.
    Please help me in this.
    Thanks
    Sandeep
    Calance
    India

    Hi Sheldon,
    we never have issues when we combine standard objects, like a cliear with a load inforprovider, or the master data integration you mentioned in your document. However, from the moment we combine a script logic with a standard package (like a move) it does not work .The data package contains the task needed for the script and for the move. the process chain is called up but always comes in error in the first step (BPC modify dynamically ) ... there is also no log when checking the view status ...
    I can sent you some screenshots if you like ...
    D

  • UMS Portlet (Beta Release) available for download

    What are we announcing?
    The beta release of the Unified Messaging Service (UMS) portlet is available for download on Portal Studio from Integration Solutions page. The UMS Portlet makes available to Oracle9iAS Portal users the abilities to send SMS messages, Emails, Voice notifications, Fax and WAP Push messages on a single web interface. These messaging capabilities are provided by the Oracle Notification Service (ONS, formerly the Push Service). By hosting this portlet, you automatically get a free trial account with the ONS service. Please send your comments, suggestions, and evaluations of this beta release on this discussion forum.
    How can I use it?
    The Oracle Notification Service (formerly known as Push Service) is an Oracle online service that allows Oracle9i Application Server Wireless and Oracle9iAS Portal users to send SMS messages, Emails, Voice notifications, Fax and WAP Push messages in an easy to access manner without installing any new software. The Oracle Notification Service is hosted at Oracle's data centers and is managed and maintained 24x7 by highly skilled staff. Users connect to it as a Web Service using an XML SOAP API over HTTP/HTTPS. The UMS portlet abstracts this communication and multiprotocol, multidevice complexities for the Oracle9iAS Portal users.
    An Oracle9iAS Portal user can sign up for this service and pay per usage.The user of this portlet would need to register and get an account with Oracle9iAS Wireless Service. However, to encourage the use of this service, a trial account of 500 units per IP address has been permitted. For purchasing more units and know more about the pricing mechanism, you can send an e-mail to [email protected]
    More information on Oracle9iAS Wireless and Oracle Notification Service is available at http://otn.oracle.com/products/iaswe/content.html
    Currently, this portlet allows sending SMS, Voice Mails, E-mails, Fax and WAP Push Messages. Future extensions will include support for Multimedia Messaging Service (MMS).
    Using this portlet, a portal user can send the same message as an SMS to people who have mobile phones, as an Email to those who would be at office, as a Voice mail to an employee who is at home and doesn't have access to Emails or mobile phones. For example, this portlet can be used in a hospital web site where the staff can send instant requests to the doctors or can be used in a financial portal which informs users about the changes in his/her stock prices on the device they wish.
    How do I get it?
    This portlet is available through the Portal Integration Solutions page (http://portalstudio.oracle.com/servlet/page?_pageid=3189&_dad=ops&_schema=OPSTUDIO) on Portal Studio. You can download this portlet from the Download Integration Portlets page (http://portalstudio.oracle.com/servlet/page?_pageid=3191&_dad=ops&_schema=OPSTUDIO). You would be asked to enter your OTN user details to download the portlet.
    Thanks & Regards,
    Abhinav

    Hi,
    I few minor issues with the SMS Portlet have been resolved & the updated version is available for download from the same location.
    If you have any queries, please post them at this forum. Your feedback on this portlet would be greatly appreciated.
    Thanks & Regards,
    Abhinav

  • Generating sub reports with XML Datasource in Jasper Report

    Hi ,
    I have a query related to report generation using Jasper Reports. I have managed to generate main report with XML as a datasource but am unable to do so for subreport. I tried serching through Google but in vain. If by chance I've missed out any of the links, i would be grateful for that. Sample code woukd really make my life better.
    Sorry in advance if i 've posted in wrong forum.(if it hurta anyone)

    Hello there,
    I am new to JasperReports and am having a similar problem. Were you able to find out how to do this. Any help is appreciated.
    Thanks in Advance
    Regards
    Sriram

  • Crystal Reports server XI release 2  -Urgent

    Hi,
      I am trying to evaluvate Crystal Reports server XI release 2 and i face problems in integrating it with java. can sombody help me out?
    Also when i try to open a report using INFOVIEW i get a cannot open connection error.
    thank & regards,
    Prem

    What problems exactly are you running into?  Are you getting errors?  Also - the infoview error is most likely that the report can't connect to the database - or that the account that the Page or RAS server is running under can't see the database server.  Try running the page server and RAS server under a user account that has domain privileges
    a programmer learning programming from perl is like a chemisty student learning the definition of "exothermic" with dynamite

  • Integrate jsf, jboss and jasper reports

    Hi there!
    I've a problem with integration jboss with jasper reports and jsf. Which jasper classes do I have to place on a server and what jboss files do I need to configure? How can I run jasper report from the jsf page? Any information on this subject will be very usefull.
    Thanx for help in advance.
    Adam

    Unless I have totally misunderstood your question, I think you have posted this question in the wrong forum. This forum is dedicated to developer questions about JSR 208 (Java Business Integration), a specification from the JCP that describes a service-oriented integration architecture. In this realm, integration means getting separate applications and messaging systems to interoperate, when they were never designed to do so. Your question sounds like you want to install particular technologies into jboss; this is a very different use of the term "integration".

Maybe you are looking for

  • How do I install the FM10 licensing fix when Adobe Update Installer won't run?

    Adobe Update Installer won't run so can't install FM10 licensing fix This question is Not Answered.(Mark as assumed answered) Aug 9, 2013 12:09 PM        Tags (edit): none (add)   Because FM10 began crashing with "fatal" errors whenever I tried to ge

  • Mail is corrupting PDF attachments

    about 25% of the PDF files I receive as attachments show as an icon in the top part of the msg, but also show as unreadable hex "text" in the bottom part of the msg. If I click on the PDF ICON in Mail.app, it opens fine in PREVIEW.APP IF I forward an

  • I can not get OSX 10.5.1 to install on my Powermac G5

    I have an older Power Mac G5 Which is running OSX 10.4.11 and I procured a retail copy of OSX 10.5.1 Single Disc Install DVD. I tried to load it and it does not load and it appears to be frozen with a grey screen and the apple icon. I let it run for

  • Problem with placing of properties file

    Hi all, Iam using a properties file. From a jsp, Iam reading the property file..... Its giving FileNotFoundException.... I hope its problem with placing of my properties file... I placed the properties file in WEB-INF/classes..folder..... But still i

  • File to File Scenario basic

    Hi Brijesh, XI cannot access shared file drives. I.e. the directory for the files must be on the XI server. Furthermore check if XI (or better the XIUSER) has sufficient permissions to read resp. write the files from / to the directories. Regards, Pe