Run BI Publisher report from an application directly to  a printer.

Dear All,
I have an HTML page (with JavaScripts),
I want to Run BI Publisher report from this page directly to a printer. (and send parameters).
Can anyone help me, and send me Demo URL or Demo code to do this?
Regards,
Tovit

Tovit
you are going to have build out a servlet that the page can call. The servlet will need to implement the supported web services to schedule a report. The schedule can include the delivery options ie to a printer. So you would create a schedule that runs the report immediately via the scheduler and then to the printer.
I dont currently have any servlet demos but the services are pretty well covered in the user docs.
check them out and give it a try, if you get stuck let me know
Tim

Similar Messages

  • Accessing XML Publisher Reports from Java application

    How to accesss the XDO Reports from Java application?
    I am wondering that we need to get the URL for accessing the report and call the URL with in Java program?
    Is that right? Is there any other option? Any help is greatly appreciated.

    You need to write some class based on the BI Publisher APIs taking data, template, output format, etc.
    Pehaps the following Blog of Tim Dexter shines some light on your question
    http://blogs.oracle.com/xmlpublisher/2007/02/27#a166
    Marcos

  • Run a report from an application

    Hi all,
    I don't know if this post belongs here or in the Reports forum. Anyway, any help with this will be muchly appreciated. I thought this task would be straightforward enough, but I'm having a whole lot of difficulty finding any instructions on it.
    I have an application developed in JDeveloper using BC4J. And I want to be able to print reports from this application. It is a standalone program, i.e., not JSP. I have a number of reports I will want to run, and for now I have created the simplest one in Oracle Reports. How do I run this from my Java application? I would really rather not have to open a browser window or generate a PDF, but just print the thing immediately (or give the user a preview if desired).
    Thank you in advance,
    Owen Gibbins

    Does anyone have any thoughts on this?

  • Running custom BI (XML) publisher report from BPEL

    We would like to run a custom BI publisher (XML publisher) report from BPEL process and the resultant PDF report output needs to be FTPed to specific location. BPEL can pass on the XML content required for the report.
    Is this possible or any workaround for this ?

    Any light on this ?

  • BW - EP Connection to Publish Reports From BW

    We have implemented Enterprise Portal 6, and are running BW 3.5
    I have been trying set up the connection between the 2 systems, so that I can publish reports from BW to EP
    SSO between EP and BW is working - I can create a BW iview, or run a BW transaction without having to sign on again to the BW server.
    I have checked the RFC connection from BW to EP using transaction SM59, and it all seems to be working fine.
    When I am in the Web Application Designer in BW, there appears the option to Publish to Enterprise Portal 6.0. I can see the destination that I created to point to EP, but I can't see any roles/folders etc within the portal.
    I have been through all of the documents that I have found in SAPHelp on configuring the connection, but have still had no luck.
    Does anyone have any suggestions? Are there some permissions that I need to set up on either BW or EP before this will work?
    Thanks in advance for any assistance.
    Regards
    Richard

    Thanks very much for your assistance!!
    Deepu:
    Thanks for pointing me to the note - that looks like it could be helpful - I need to talk to our basis adminstrator about a couple of things, and he is away for a couple of weeks, so this problem will probably be on hold for a bit now.
    Ashwin:
    Thanks - I've checked the SSO to BW, and can see all of the BW reports in the BW repository in EP. My personal folders are all set up, but are empty.
    I really appreciate your help on this guys. I'll try the changes in the OSS note (but won't be able to do this for a while), and will let you know if it is successful.
    Regards
    Richard
    PS. I'm really sorry, but I don't seem to be able to allocate points for your answers - there are no radio buttons displaying on the screen for some reason - I'll see if I can contact SDN to get this sorted out.

  • Invoking XML Publisher Report from PL/SQL

    Hi,
    I have a PL/SQL procecedure which invokes the Concurrent Request for the XML Publisher Report. This one finishes with a warning and I get 'Unable to publish output' when I try to view the output. Exact Error: "Unable to find the published output for this request "
    But if I run the same report using Concurrent program, the Report executes with no error. Also the desired output is coming. I am not sure where I am doing wrong in code.
    My code which invokes the XML Publisher Report (from PL/SQL package)is something like this:
    declare
    x boolean;
    l_no_of_copies varchar2(45);
    l_printername varchar2(45);
    l_print_style varchar2(45);
    l_result boolean;
    y number;
    begin
    x := fnd_request.add_layout (template_appl_name => 'XXTMG', template_code => 'XXT_5001_BOL_T', template_language => 'EN', template_territory => 'US', output_format => 'XML');
    l_no_of_copies := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_NO_OF_COPIES');
    l_printername := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_PRINTER');
    l_print_style := NULL; --For setting the Printer Options
    l_result := fnd_request.set_print_options (l_printername, l_print_style, l_no_of_copies, TRUE, 'N');
    l_result := fnd_request.add_printer (l_printername, 0);
    y := fnd_request.submit_request ('XXTMG', 'XXT_5001_BOL', '', TO_CHAR (SYSDATE, 'YYYY/MM/DD HH24:MI:SS'), FALSE, 'CH-120079') ;
    end;
    Please let me know where I might be going wrong
    Thanks

    Hi Sumit,
    You can try with this code:
    exec dbms_application_info.set_client_info(org_id)
    exec fnd_global.APPS_INITIALIZE(user_id,resp_id,appl_id);
    declare
    x boolean;
    l_no_of_copies varchar2(45);
    l_printername varchar2(45);
    l_print_style varchar2(45);
    l_result boolean;
    y number;
    begin
    x := fnd_request.add_layout ('XXTMG' --template_appl_name 
              ,'XXT_5001_BOL_T' --template_code
              ,'en' --template_language 
         ,'US' --template_territory
         ,'XML' --output_format
    if (x=TRUE) then
    y := fnd_request.submit_request (
                        'XXTMG'           --application 
                        ,'XXT_5001_BOL'      --program
                        ,SYSDATE          --start_time
                        ,FALSE               --sub_request
                        ,'CH-120079'          --argument1 (Program's Parameter)
    if y>0 then
              dbms_output.put_line('Request ID '||y);
    end if;
    end if; --if (x=TRUE) then
    end;
    Make sure that program has only one input parameter. If program has other parameters then you can pass those parameters like argument1, argument2... etc.
    Now you can see this submited request in your application using your user id. If you able to see your request in concurrent request then you can add printer parameters in this programs.
    You don't need to pass all 100 parameters.
    I am executing many programs/reports using this code.
    Thanks
    Ravi
    [email protected]
    Message was edited by:
    Ravi Tripathi

  • How to run an XML Report from Oracle Forms 10G

    Hello Friends,
    I am in need of showing a xml report output through a button press trigger in Oracle Forms10G.
    I have designed the report in XML Publisher and the report looks fine.I found few scripts useful in running the Oracle Report from Oracle forms10G like Run_Report_Object.But I am not aware of any script that could run a XML report and show the output directly from a Form.
    All I want is to run a XML report from an Oracle Form with a button press trigger and show the output in an html version.
    Can this be achieved?
    If so, Kindly advise as this is an immediate work.
    Regards,
    Badrul.

    Hi,
    If I am not wrong the XML publisher is same as BI publisher ...
    There is one document which explains how to integrate using web service
    You want to check this
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    or you can also try web.show_document ..

  • Failed to commit objects to server. Error while publishing reports from BW

    Hi,
    I am getting below error while publishing reports from BW to BO.
    "0000000001 Unable to commit the changes to Enterprise. Reason: Failed to commit objects to server : #Duplicate object name in the same folder."
    Anyone having any solution for this. Thanks in advance.

    Hi Amit
    It would be great if you could add a little info about how you solved this issue. Others might run into similar situations - I just did:-(
    Thank you:-)

  • 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

  • How to generate XML Publisher report from PLSQL Stored Procedure in APPS

    Hi,
    I have concurrent program of type PLSQL Stored procedure.I need to generate XML Publisher report from the same.I have changed the output of the concurrent program as "XML" but when I tried running it,the XML tags are not generated.Due to this I am unable to create the template.Its a urgent issue.
    Please help me out .
    Thanks in advance.
    Kaveri

    Hi Kaveri
    Sadly there is nothing magic about that output field. The only program type that you can flip it to XML and then magically get XML is for Oracle Reports. For plsql you will need to recode the plsql to generate XML rather than text that you have now.
    You have some options, best option first:
    1. Move the sql to a data template - check the user guide and blog for help or
    2. Use SQL XML or XMLGEN (not great for large datasets) or
    3. Use dbms_output.put_line and write the XML file manually - not performant at all
    Regards, Tim

  • Run XML Publisher Report  via URL (like Oracle Reports)

    Hi All,
    Is it possible to run xml-publisher report via URL?
    In Oracle Reports works this fine:
    http://test:7777/reports/rwservlet?server=test_bihome1&report=test1.rdf&userid=test/testv@db&desformat=pdf&destype=cache
    We need this for public reports without user login.
    Thanks
    Thomas

    Thomas,
    I was waiting to get home before Tim replied... He got the better of me this time :-)
    You say you want to let your users run reports using XMLP just by clicking on an URL same way you do with reports and without having to login. If I got the question right and assuming that:
    1.Your company is not overly concerned on who runs what reports
    2.Who sees what data
    3.Your XMLP installation is on your intranet and firewalled from the outside
    What you can do is:
    On the main page of your XMLP Enterprise installation you should see a folder called "Guest". Any report you create under this folder is run as user "guest" which means you don't have to authenticate yourself as you would normally do.
    I have tested this on my home server and this is what I've done:
    1.Logged in as admin or any other user you've created with admin privileges created a report under the "Guest" folder.
    2.Copied the URL, on my server it is "http://samba.private.net:15101/xmlpserver/Guest/People/People.xdo"
    4.Logged off as admin and pasted the URL to a new browser window
    5.Hit return and Voila, my report runs without the need to login to XMLP.
    Hope this helps. Let us know how you got on.
    Cheers,
    Joao
    PS: If you want to see the report for yourself here's the URL from the outside: http://medeiros.homelinux.net:15101/xmlpserver/Guest/People/People.xdo
    I'll keep the link alive for a couple of days.

  • Deploying BI publisher report from OEM plug-in

    Hi!
    I am a bit confused about how to deploy & access BI publisher report from the plugin I develop
    I've found only the http://docs.oracle.com/cd/E24628_01/doc.121/e25161/bi_pub.htm and am a bit confused
    What I did:
    1) Integrated BI publisher with OEM
    2) Developed a BI publisher report
    3) Downloaded 2 files : xdoz and xdmz (DataModel & report)
    4) made folder structure
    /bipublisherreports/
    /EM_Datamodels
    5)packed into jar
    jar cf myjar.jar ./bipublisherreports
    6)put jar into ../oms/reports/emreports
    7)written report.xml (in ../oms/reports/) file:
    <?xml version = '1.0' encoding = 'UTF-8' ?>
    <BIPublisherReports
    xmlns="http://<what ip is here???>/DataCenter/BIPublisherReport">
    <ReportFile relativePath="emreports" fileName="myjar.jar"/>
    </BIPublisherReports>
    The plug-in does not pass validation...
    cvc-elt.1: Cannot find the declaration of element 'BIPublisherReports'. for the MDS id report
    Error is ungooglable =(
    Can anybody help or point to some clear doc?

    cd /tmp
    mkdir STAGE
    cd STAGE
    mkdir bipublisherreports
    cd bipublisherreports
    mkdir EM_Datamodels [notice the underscore]
    mkdir "My Sample Report" [notice, the quotes are necessary since the directory name contains spaces]
    The datamodel needs to go in the following directory:
    -------------- "bipublisherreports/EM_Datamodels/My Datamodel.xdmz" [there is an underscore between EM & Datamodels]
    The reports go in a report directory, for example:
    --------------- "bipublisherreports/My Sample Report/My Report.xdoz" [use spaces here wherever you prefer]
    Make sure your report refers to the datamodel in the right location. So, in BIP, when editing the report, use the above folder names, under the 'Enterprise Manager Cloud Control' shared folder.
    For example, your BIP catalog will look like this:
    Shared Folders
    ---Enterprise Manager Cloud Control
    -------- EM_Datamodels
    -------------- My Datamodel
    -------- My Sample Report
    -------------- My Report
    You then create a jar file with this:
    cd /tmp/STAGE
    jar cvf myemreports.jar bipublisherreports
    Now, you need to make your bip reports part of your plugin source code.
    You put your report.xml in your sysman/metadata/bipublisherreport [note the singular] directory.
    For example:
    <BIPublisherReports
    xmlns="http://www.oracle.com/DataCenter/BIPublisherReport">
    <ReportFile relativePath="emreports" fileName="myemreports.jar"/>
    </BIPublisherReports>
    You then create a subdirectory, sysman/metadata/bipublisherreport/emreports
    And you put your myemreportrs.jar file here.
    You then rebuild your opar using standard EM procedures.
    When a customer later on instals your plugin, the BIP reports that go with the plugin are installed into the EM database repository automatically.
    they can simply do this to deploy the bi publisher reports from em to BIP at any point:
    emcli deploy_bipublisher_reports -plugind="my.sample.plugin" -pluginversion ="12.1.0.3.0" [-force]
    The -force operation overwrites the reports.
    See the complete help text like this:
    emcli help deploy_bipublisher_reprorts
    If they have not yet configured BIP with the configureBIP script, this deploy step happens automatically when they run configureBIP.

  • How do I open / run Cognos Impromptu Report from CSharp

    Hi,
    I am new to Csharp and using C# for my application development and I need to load Cognos Impromptu application and run a report from my application automatically and run the report to create ascii text file. Is there any code is available? I have vb.net
    code but I do not know how to write it is in C#. If you have please send me, your help is really appreciated.
    for your reference I am sending vb.net code, I need the below code in CSharp.
    Call Cognos("C::AccountsPayable DOWNLOAD.IMR", "c:\APDownload.txt")
    Function
    Private Sub Cognos(ByRef StrReport As String, ByRef StrText As String)
            Dim objImpApp As New Object
            Dim objImpRep As New Object
            objImpApp = CreateObject("CognosImpromptu.Application")
            'Open Impromptu catalog
            objImpApp.OpenCatalog("C:\Program Files\cognos\cer5\Deltek\IMP74GCSP41\Catalog\All Tables.cat")
            'Open the report that will be exported to text format
            objImpRep = objImpApp.OpenReport(StrReport)
            objImpRep = objImpApp.ActiveDocument
            ' objImpRep.ExportAscii(StrText, , -1) 
            objImpRep.ExportAscii(StrText, 0, -1, , 0)
            objImpRep = Nothing
            objImpApp = Nothing
            MsgBox("Cognos Done")
        End Sub
    Thanks

    Hi ncsatyanand,
    This forum is for questions about Microsoft products. The best way to use this component is to ask IBM for the documents or API. Here's the official site of this component:
    Cognos Impromptu
    I took a closer look at your VB.NET code, seems that the method Cognos creates a COM object "CognosLmpromptu.Application", and call the method in this COM object. In C# project, if you want to call some COM object, you have many choices. One of them is to
    add reference to the COM object by using the "Add Reference" option. Right click your project>>Add>>Reference>>COM, if you have installed the component properly, it should contains the necessary COM objects. Then just create an instance of
    the COM object and call the members of it.
    CognosImpromptu.Application app=new CognosImpromptu.Application();
    app.OpenCatalog("C:\Program Files\cognos\cer5\Deltek\IMP74GCSP41\Catalog\All Tables.cat");
    Another way is to create the instance of the COM object using reflection with the ProgID:
    Type type = Type.GetTypeFromProgID("CognosImpromptu.Application");
    dynamic app= Activator.CreateInstance(type);
    app.OpenCatalog("C:\Program Files\cognos\cer5\Deltek\IMP74GCSP41\Catalog\All Tables.cat");
    With the dynamic keyword, the members of the COM object will be invoked at runtime, without knowing the exact types of them.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Integrating Dashboard / Publisher report into another application

    Hi,
    We do have a requirement in one of our applications, which is on Tomcat server. Where in we need to integrate an existing Dashboard and Publisher report to this application.
    And it should not be through GO URL, where i need to specify the username & password and presentation services tries to create new session each time the page is called.
    Hope some one helps in guiding us to achieve this.
    Thanks in Advance
    Message was edited by:
    Rajendra PV

    Vaidya,
    Let me rephrase what you are looking for...
    1. You dont want to embed the Webdynpro link into the template but would rather embed it as an object
    2. You want to run the web dynpro when the WAD page is launched...
    This is for 7.0 right..?
    As for embedding the web dynpro as an object as opposed to a link ...? any reasons why - is it because you dont want users to see the link in the HTML source ...?
    Even if they do - I am not sure how web dynpros work ( rusty on that front ) but then you should get a session ID when you launch the web dynpro right ..? which would obviate any reasons for the users to see the link
    Possibly have it included as a button using Javascript ..?
    If you want the webdynpro to launch when the WAD runs - then you could have an onload function in javascript that can do the same....

  • How to Call Crystal Reports from Swing Application

    Hi All,
    I have a requirement for calling Crystal Report from Swing Application. Please let me know how can I do that, and also provide the Source code for calling the crystal report.
    Thanks in advance.
    Chandra

    hi
    this is the code that i am using in my application which is similar to urs. but i am working with CR XI so make all the neccessary changes.
        import java.awt.*;
        import javax.swing.*;
        import com.crystaldecisions.ReportViewer.*;
        import com.crystaldecisions.reports.sdk.*;
        import com.crystaldecisions.sdk.occa.report.reportsource.*;
       public class HelloSwing
            public static void createAndShowGUI()
                try
                    //Make sure we have nice window decorations.
                    JFrame.setDefaultLookAndFeelDecorated(true);
                    //Create and set up the window.
                    JFrame frame = new JFrame("HelloWorldSwing");
                    frame.setTitle( "Testing Reports");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   ReportViewerBean viewer = new ReportViewerBean();
                    viewer.init( new String[0], null, null, null);
                  ReportClientDocument rpt = new ReportClientDocument();
                    rpt.open( "report path", 1 );
                    IReportSource rptSource = rpt.getReportSource();
                    viewer.setReportSource( rptSource );
                    frame.getContentPane().add( viewer, BorderLayout.CENTER );
                    frame.setSize( 700, 500 );
                    frame.setVisible(true);
                    viewer.start();
                catch ( Exception exception )
                    System.out.println( exception.toString() );
            public static void main(String[] args)
                javax.swing.SwingUtilities.invokeLater(new Runnable()
                    public void run()
                        createAndShowGUI();
       there are 23 jar files that u need to import into ur package. but remember that ReportViewerBean should be the first jar file in the list & it should be followed by jrcerom.jar
    specify the key in the CRConfig.xml file (which also has to be imported in the package)
    u can find these jar files in the common objects folder in your program files.
    hope it helps. best of luck

Maybe you are looking for