Reports in JDeveloper 9.0.3

Hi,
what would be the best way to produce high quality paper reports from a JClient application (with preview) ?
How can I invoke reports generated from Oracle Reports 9i (JSP) from JClient ?
I suppose that a Runtime.exec() is not the very best way to start a browser with a URL to the JSP report...
Thanks,
KZic

Here is how we did it:
public class BatchPrt
String DestPrinter = "\\\\teal\\potassium";
String InitialParms = "server=Rep60_ws1925+report=wkfl_batch.rdf+paramform=no+destype=printer+userid=blah/blah@neic817+desformat=pdf+orientation=portrait+copies=2" + "+desname=" + DestPrinter;
public BatchPrt()
public void PrintRpt(String BatchId)
try{
String parms = InitialParms + "+batch_id=" + BatchId;
byte[] bytes = parms.getBytes();
URL url = new URL("http://ws1925/cgi-bin/rwcgi60");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setDoOutput(true);
con.setDoInput(true);
con.setUseCaches(false);
con.setRequestMethod("POST");
con.setRequestProperty("Content-length", String.valueOf(bytes.length));
OutputStream out = con.getOutputStream();
out.write(bytes);
out.flush();
int responseCode = con.getResponseCode();
if (responseCode != HttpURLConnection.HTTP_OK) {
     System.out.println ("Unable to connect, http error code: "+String.valueOf(responseCode)+").");
     System.exit(1);
out.close();
con.disconnect();
// Show a message saying the print was ok.
JOptionPane.showMessageDialog( null, "Batch Report for Batch Id " + BatchId + " complete." );
catch (MalformedURLException e)
JOptionPane.showMessageDialog( null, "An error occured! Please contact Corporate Systems!" );
e.printStackTrace();
catch(IOException e)
JOptionPane.showMessageDialog( null, "An error occured! Please contact Corporate Systems!" );
e.printStackTrace();
Hope this helps.

Similar Messages

  • Urgent.....Error while running a jsp report from Jdeveloper

    Hi,
    I am getting following error while running a jsp report from Jdeveloper. I am using version 10.1.2.1.0. The same report is working fine when I am running it from report builder. ( Both these tools were installed using Oracle Developer Suite 10g version 10.1.2). I did search in oracle discussion forums and google, but I could not arrive at a resolution of error. Any help in resolving this issue would be grateful.
    Error details:
    Page url : http://<hostipaddress>:8988/Reports-reportproject-context-root/MyReport.jsp
    Reports Error Page
    Wed Oct 17 20:03:22 IST 2007
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
         at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:464)
         at MyReport.jspService(MyReport.jsp:4)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Could anyone help me out in resolving this issue.
    Thanks
    Siva...

    Hi,
    I posted this message in jdeveloper forum yesterday, but there was no response. So I thought of posting it in this forum to check my luck.
    Thanks
    Siva...

  • Urgent...Error while running a jsp report in Jdeveloper

    Hi,
    I am getting following error while running a jsp report from Jdeveloper. I am using version 10.1.2.1.0. The same report is working fine when I am running it from report builder. ( Both these tools were installed using Oracle Developer Suite 10g version 10.1.2). I did search in oracle discussion forums and google, but I could not arrive at a resolution of error. Any help in resolving this issue would be grateful.
    Error details:
    Page url : http://<hostipaddress>:8988/Reports-reportproject-context-root/MyReport.jsp
    Reports Error Page
    Wed Oct 17 20:03:22 IST 2007
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
    at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:464)
    at MyReport.jspService(MyReport.jsp:4)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Could anyone help me out in resolving this issue.
    Thanks
    Siva...

    Hi,
    I posted this message in jdeveloper forum yesterday, but there was no response. So I thought of posting it in this forum to check my luck.
    Thanks
    Siva...

  • Call Xml Publisher report from Jdeveloper

    Hi,
    I am first time integrating XML publisher with Jdevloper.
    I need to call xml publisher report from Jdeveloper.
    I followed all steps from anilpassi link for sample
    its showing error while tring to open pdf file
    Error:
    Adobe Reader could not find 'EmpReport[1].pdf' because it is either not a supported file type or because the file has been damaged.
    Please help ,i m stuvk because of this error.
    below is the code
    EmpCO :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("initEmpVO");
    // am.invokeMethod("getEmpDataXML");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    if ("GenerateReport".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("event fired");
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response =
    (HttpServletResponse)sessionDictionary.selectValue(null,
    "HttpServletResponse");
    try
    System.out.println("inside try");
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream =
    new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME, TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF, null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    catch (IOException e) {
    System.out.println("Exception1"+e);
    } catch (SQLException e) {
    System.out.println("Exception2"+e);
    } catch (XDOException e) {
    System.out.println("Exception3"+e);
    pageContext.setDocumentRendered(false);
    EmpAMImpl:
    public void initEmpVO() {
    EmpVOImpl vo = getEmpVO1();
    if (vo == null) {
    MessageToken errTokens[] =
    { new MessageToken("OBJECT_NAME", "EmpVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else {
    vo.executeQuery();
    public XMLNode getEmpDataXML() {
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    XMLNode xmlNode =
    (XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    Please help !!

    Hi,
    I tried the way suggested by Anil in the above link as well today, but still am getting the same error while openning the pdf .
    Dont know why it shows error that either the file is not a supported file type or because the file is damaged.
    Please suggest way to solve this error or some other way of calling xml report from OAF page.
    Edited by: user13573749 on Apr 10, 2011 9:59 PM

  • Calling Oracle Developer Report from JDeveloper

    I am using Orale JDeveloper 10.1.2. I can't seem to find a way of producing reports. I read that Oracle Reports developer can be integrated with Jdeveloper. How can I do this? I want to be able to generate reports from Jdeveloper.
    Thanks.
    Lucas

    If you want the Reports integration inside JDeveloper - you need to install the Oracle Developer Suite - the JDeveloper version that comes there has the reports integration.
    For more questions on this try the Reports discussion forum:
    http://forums.oracle.com/forums/index.jsp?cat=19

  • Crosstab Report in JDeveloper 10.1.3.3

    Hi,
    I am new to JDeveloper.
    I am looking to develop an crosstab report in JDeveloper.
    I have managed to get this working in Discoverer using a Discoverer Crosstab report, but I cannot seem to replicate this in JDeveloper
    Previous versions seem to use the BI Beans functionality crosstab report, but I cannot find this in my version, I have been reading around and it doesn’t seem to be supported in v10.1.3.3.0.
    Is there a way to create this in JDeveloper 10.1.3.3.0?
    Any help would be greatly appreciated.
    Many Thanks
    Martin Ley

    We don't have a crosstab component in 10.1.3 - there is one in 11.

  • Integrate reports with Jdeveloper

    Hi,
    Can anyone please tell me how to integrate Jasper reports with Jdeveloper.I need to create reports and Graphs in my application.
    Thanks

    Do a search in this forum for messages with "Jasper" in them you'll find many that will help you. Re: JasperReport with Jdeveloper

  • Print reports + Oracle JDeveloper 10g

    Can anybody tell me, how can I compose good looking reports with JDeveloper 10g , if I'm working on the jsp-application and need to print them from this application? Is there any demo or tutorial?
    Thanks a lot

    Well JSP is just HTML with dynamic data in it - so you'll need to work your HTML charms to make it look nice.
    If you are interested there are specialized reporting tools that let you layout the report in an easier way - one example is Oracle Reports - http://otn.oracle.com/products/reports

  • Integration of Oracle Reports to Jdeveloper

    Hi,
    How do we integrate Oracle Reports to Jedeveloper? Do you have atep by atep tutorial for doing this?
    Regards,
    Gareth

    Hi Gareth,
    Heres a thread with discussions on the same topic, which might be of some help :
    Re: Reporting from JDeveloper
    Regards,
    Sunil..

  • Build report with Jdeveloper

    Hi all
    I'm using Jdeveloper 10.1.2 and I would like to build reports .
    Is there any way to do with ADF. Otherwise can you advise me how to do ?
    thanks

    It all depends on how you define a report and what are your specific needs.
    You can look at Oracle Reports at - http://otn.oracle.com/products/reports for a full blown reporting engine and development tool.
    You can also integrate the open-source Jasper Reports with JDeveloper (search the forum for previous posts that will show you how).
    And there is also the XML Publisher here:
    http://www.oracle.com/technology/products/applications/publishing/index.html

  • Developing reports using JDeveloper 3.0

    Is it possible to develop reports using jdeveloper 3.0, so that the end users can print reports over the internet? Is that a feature in jdeveloper or do I have to buy a third party tool?
    Thanks,

    Creating HTML/XML-XSL based reports in JDeveloper is completely doable.
    To do this you can either create a Servlet or a JSP. This JSP/Servlet can use either either JDBC or BC4J to access a datasource in the database.
    For further info on how to do this see the
    Java Server Pages overview at: http://tooldemo.oracle.com/demos/tools/jdeveloper/
    Hope this helps,
    -Chris

  • Use Oracle Reports with Jdeveloper 11

    Hi,
    My next question. How to use Oracle Reports with jdeveloper 11. I have more oracle reports (used with a existing forms application) and i need to migrate this application to web-adf application. I think that is very powerful to use this oracle definition reports but i not know ho to do it.
    thanks,
    Jordi

    Read the publishing reports manual of Oracle reports to see how to Web enabled your Oracle reports. You can then invoke them from an ADF application either by calling a URL or using a Web service interface.

  • Reports in jdeveloper

    How can I write oracle developer equivalent reports in jdeveloper ?
    Please help

    Actually if you are familiar with the Oracle Reports product - you can continue using it and just call the reports from inside JDeveloper applications through the URL or Web service invoke methods for the reports server.
    JDeveloper is not exactly a reporting tool - but you can use it to create "Read only" applications that basically display data from the DB.

  • Running Oracle Reports from JDeveloper

    Do you know how to run an oracle report from JDeveloper?

    Do you mean invoking a report at runtime, or do you mean designing a report inside JDeveloper?
    Did you try asking on the Reports Forum:
    http://forums.oracle.com/forums/category.jspa?categoryID=19

  • JSP Report in Jdeveloper 9.0.3.1!!!

    Hi,
    I've a BC4J jsp application developed by Jdeveloper 9.0.3.1. I need to include a jsp report in my project.
    Is it possible to do it? How?
    If this is impossible, how can I create a "pdf" format report (or something of similar)?
    Tanks in advance.

    Harald,
    We just got Apache's XSL_FO transformer, XML into PDF working under 902 oc4j.
    It's a CPU hog, as one would guess.
    Do you know if the tools you mentioned use a more CPU effiicient technology than XSL transform or are more
    efficient than Apache's XSL_FO?
    Thanks, curt

  • HOW TO CREATE A NEW J2EE APP FOR DEPLOYING ORACLE REPORTS USING JDEVELOPER?

    Hi,
    I'm new to JDeveloper and Java, JSP etc. I'm trying to deploy a sample parameter form for JSP report. My question is: When I create a J2EE application using JDeveloper, how to make sure "The WEB-INF directory must contain the JSP tag library for Oracle Reports, called reports_tld.jar"? How to do it via JDeveloper?
    In my JSP page, I use <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>.

    Does anyone know the answer to this question?
    I get the following error in Jdeveloper when running my test jsp report:
    Error(8): Unable to load taghandler class: /WEB-INF/lib/reports_tld.jar
    Thanks.
    Hi,
    I'm new to JDeveloper and Java, JSP etc. I'm trying
    to deploy a sample parameter form for JSP report. My
    question is: When I create a J2EE application using
    JDeveloper, how to make sure "The WEB-INF directory
    must contain the JSP tag library for Oracle Reports,
    called reports_tld.jar"? How to do it via JDeveloper?
    In my JSP page, I use <%@ taglib
    uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>.

Maybe you are looking for

  • The remote controls stopped working

    I bought with an official Apple dealer the new i Pod Shuffle (generation 3) to use during my bike rides. After the first ride the remote controls stopped working and the voice over feature spontaneously started repeating the songs title. As well the

  • How do I get a link or shortcut to open in a new window each time?

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/776534]</blockquote><br> How do I get a link or shortcut to open in a new window each time?

  • Keep SOME spreads together in PDF

    We have a lot brochures which we provide both in hard copy as in digital version (PDF). A minor annoyance with the digital versions, is that i have to choose between all spreads, or no spreads. Take the screenshot for example: i would like pages 1-5

  • Flush headphones?

    What does that mean?

  • Permissions with NAS

    In the office, we have 2 iMacs - both running 10.5.7 and a NAS drive (Western Digital MyBook World Edition). We both connect to the drive as the Guest user - but when we try to transfer documents to the NAS we can't access each others file. Not ideal