Saving The Report File (PDF) on Client Machine/PC

Hi Everyone,
I am using Oracle Application Server 10g (10.1.2). I have a form that calls a report (both forms and report version are 10.1.2) with ASYNCHRONOUS option and creates a file in PDF format. The report is running fine and is creating the PDF file fine BUT on the application server.
I need to know if there is a possibility of either creating the file on the client machine/pc or transferring the file from application server to client PC. I would prefer the first option that is to create the file on client PC so the client can print or browse the report later. The second option would be ok if there is no solution for first option but I am assuming that it would take twice as much time. First to create the report on Application Server then to transfer the file from AS to client PC.
I have already included webutil library and object library but could not find a way to save the file on client PC using any of the APIs.
I would appreciate if some one provide me detail information. I mean syntax on how to either create the file on client PC or how to transfer the file created on application server to client PC. I would like to know where the report is created on Application server as the path will be required for transfer.
Thanks in advance.
Khalid

Instead of just creating the file, open the file in a
browser using rwservlet. That way the client can see
it and save in his PC whenever he wants to.
Try:
...write code to get report id...you must be already
having this...
then continue....
:global.report_server_name:=<servername>;
reports_servelet:='/reports/rwservlet';
REPORT_MESSAGE := RUN_REPORT_OBJECT(REPORT_ID);     
vjob_id :=
substr(report_message,length(:global.report_server_na
e)+2,length(report_message));
hidden_action :=
reports_servelet||'/'||'getjobid'||vjob_id||'?server='
||:global.report_server_name;
                                   --WEB.SHOW_DOCUMENT(hidden_action);
Basically you get the objid for the report you ran
and open it in the browser.
Hope this helps.Hi,
First of all thanks for you kind reply. Actaully user has an option to preview report and it is working fine. The reports run and display under browser as either PDF or HTML depending on option selected by user. These reports can be saved on client machine without any problem as you mentioned.
The problem with this form is that as soon as it execute the report it exit out of form. So the reports that are previewed run under SYNCHRONOUS mode and reports that are creating files run in ASYNCHORONOUS mode. I can run preview reports also in ASYNCHOROUS mode and I have already tried it by creating TIMER and WHEN_TIMER-EXPIRED trigger and commenting EXIT_FORM built-in. But as mentioned since the form exit out WHEN_TIME_EXPIRED does not fire and it does not display the report on the browser. I can see the status of the report in print queue when it is finished successfully.
If the report is not displayed after running in ASYNCHOROUS mode then I will be unable to save the file. That is the reason we created the FILE creation option and thought we will find a way to create/save the file on client PC but I am having hard time to do that.
I am sure I have made myself clear. Bottom line is that previewing a report in a browse is an option but will not work for long reports and if we run in background then it will not display in a browser as form exits after calling the run_report_object to run report so WHEN-TIMER-EXPIRED is not there to show the report when it is finished.
Thanks
Khalid

Similar Messages

  • Save SSRS Report as .PDF in Client Machine

    Hi,
    I am working on a SharePoint 2010 Visual WebPart, the saves a SSRS report as pdf on a button click.  The code is mentioned below:
    HttpWebRequest Req = (HttpWebRequest)WebRequest.Create(URL);
    Req.UseDefaultCredentials = true;
    Req.PreAuthenticate = true;
    Req.Credentials = CredentialCache.DefaultNetworkCredentials;
    HttpWebResponse objResponse = (HttpWebResponse)Req.GetResponse();
    Req.Method = "GET";
    //Specify the path for saving.
    string path = @"C:\test\" + quoteID + @".pdf";
    FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
    Stream stream = objResponse.GetResponseStream();
    byte[] buf = new byte[1024];
    int len = stream.Read(buf, 0, 1024);
    while (len > 0)
    fs.Write(buf, 0, len);
    len = stream.Read(buf, 0, 1024);
    fs.Close();
    stream.Close();
    The code works great, however, when the user clicks the button the file is getting saved directly in the main server when the WebPart is deployed.  So, now I want the user to be able to select the location in there system to save the file.  How
    to enable the "Open save file dialog" and let the user select the location. can someone help me with this ? 
    thanks.
    Regards, Vikram

    You can use below snippet.
     string strURL=path;
            WebClient req=new WebClient();
            HttpResponse response = HttpContext.Current.Response;
            response.Clear();
            response.ClearContent();
            response.ClearHeaders();
            response.Buffer= true;
            response.AddHeader("Content-Disposition","attachment;filename=\"" + Server.MapPath(strURL) + "\"");
            byte[] data=req.DownloadData(Server.MapPath(strURL));
            response.BinaryWrite(data);
            response.End();
    Bala

  • "  Displaying the Report in PDF file Format "

    Hai Friend's,
    I have Developed a Report in Web-Intelligence .My Report is having 50 Collums and 600 Rows. The Report is too big Report. when the Save the Report in PDF File format, The PDF file Format Report is Consisting of 10 Pages, The Report Output is not coming in One Page. But my user want the Report  all the Field's :: Collumms,Rows in one Page.can Anybody let me know the solution.

    Hi Ashok,
    You can change the page size and orientation in the web.xml in the following folder.
    Web Intelligence default Page size Modification u2013 Follow these steps:
    1. Open the defaultconfig.xml file found in the following directory:
    servername\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\webiApplet\AppletConfig
    2. Look for the following code near the top of the page:
    <KEY VALUE="page*default">
    <FORMAT NAME="A4" ORIENTATION="portrait" />
    </KEY>
    3. Change this to:
    <KEY VALUE="page*default">
    <FORMAT NAME="LETTER" ORIENTATION="portrait" />
    </KEY>
    4. Save the file.
    All the Best,
    Madhu...

  • In oracle 2.5 version report builder how to add option to generate/save the report as pdf file?

    I am working with reports of 2.5 version and i got a requirement for adding an option to save the report in pdf format. Can anybody please help me on this asap
    Thanks & Regards

    Are u sure about  the report version.
    Please do upgrade  while  even in oracle  they almost stopped for new version -Developer suite

  • Save the report in PDF format on the server: is it possible?

    Hi all,
    Is it possible to save the report in PDF format on the server?
    In other words, in a web application:
    1) the user requests a report
    2) the report produced in PDF format, is saved on the server, where is the Java Reporting Component
    3) the report, in PDF format, is sent to the client's user
    Thanks a lot

    PrintOutputController.export, get the byte stream, save on server.
    Sincerely,
    Ted Ueda

  • Page size issues while saving Deski report to PDF

    Hi All,
    While saving the Deski report as PDF, the page size changes randomly.
    The workflow is:
    Created a report in Deski.
    -- Chekced in File | Page setup the zoom size(Fit to Print | Adjust to) is 100% and the paper size is A4.
    -- Saved it as PDF.
    -- In Acrobat Reader 7.0, opened the save report, the size of paper is 8.5*11, the normal paper size.
    -- In the report in theFile | Page setup, changed the zoom size to anything less than 100% (e.g changed to 90%) whereas the paper size is A4.
    -- Saved it as PDF.
    -- In the Acrobar Reader noticed that the page size increases to some random size(e.g 9.18*12.99).
    When priting the Document the printer changes the same to A4 resulting in truncating of the content.
    The page size should be same but the content size should reduce.
    The issue can be reproduced in 6.5 and XIR2 as well.
    Is there any workaround for this that the size of the content decrease rather than increasing the page size??

    Hi Sarbhjeet,
    Thank you for all your help.
    Further to our investigation we found that this is known issue and it is a limitation of the Product, it wont be fixed.
    The ADAPT for the same is ADAPT00743734
    It is reproducible with XI 3.1 as well.
    FYI...........
    1. PDF Engine will get the rendering information from the busobj. If there is a character size differences between PDF and busobj, there are chances that you may see bigger cells or reduced data in PDF.
    2. In the report when Fit to 1 page by 1 wide in Pagesetup->FitToPrint, the page size will be set to the fit the complete report in busobj.
    3. When save as PDF, this information (increased page size, due to settings in 2) will be sent to PDF Engine. The Engine will try to fit the size into the available standard PDF size (based on Print settings and other combinations).If it tries to fit the report (enhanced page size) to the available size, then we loose lot of information depending on the number of columns and rows.
    4. Shrinking the report in busobj may not feasible.
    When we change the page size in Fit to Print (either Adjust to % or Fit to ) , in reporter it changes the page size instead of changing the rendering to fit to the page.
    When save the report to PDF, it gets the information with extended page size. So we see the enhanced page in PDF.
    Also in order to implement the shrink (instead of changing the Page size), each cell has to be shrieked to the percentage of the reduced page (compared to the original page size). It becomes more complicated when charts come to picture.
    I hope the above information helps.
    Thanks & Regards,
    Anisa

  • How to upload file from a client machine to server machine

    hei evryone!
    can anyone pls help me on how i can upload file from a client machine to another machine (or server). using jsp.Then later on, i can also retrieve the names of these files to place it as values for option tag in an html form.I have a seperate screen for uploading the file and the screen for displaying all the files that were uploaded on the server...
    any sample code/ ideas would be much appreciated.Thx!!!!

    hei evryone!
    can anyone pls help me on how i can upload file from a client machine to another machine (or server). using jsp.Then later on, i can also retrieve the names of these files to place it as values for option tag in an html form.I have a seperate screen for uploading the file and the screen for displaying all the files that were uploaded on the server...
    any sample code/ ideas would be much appreciated.Thx!!!!

  • Server Threw Exception when Exporting the report as PDF

    Hi ,
    I am developing a .Net application , In my application referring to the .rep file which is created using the Business Objects Desktop Intelligence as below
      objBO = new busobj.Application();
                        objBO.Logon(strUserName, strPassword, strServerName, strConnectionMode,false, false);
                        objBO.Visible = false;
                        objBO.Documents.OpenFromEnterprise("PfILS Document.rep", strDomain, BoEnterpriseFolderKind.boFolder);
    After passing the values to the variables of the.rep and refreshing like as below
    objBO.Application.ActiveDocument.Refresh();
    when I tried to save the generated report as .pdf ..
    objBO.Application.ActiveDocument.ExportAsPDF(@"c:\" + Report0101010 + ".pdf");
    I am getting the following issue
    The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
    and the application fails to export the report to pdf document
    Please help me , what will be root cause of this issue
    Thanks
    Babu
    Edited by: Babu Lakshmikantham on Oct 28, 2009 9:18 AM

    Hi,
    World you like to have a look at the sample [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b54507-de66-2b10-95b8-a89015297027]?
    Hope that helps!
    Thanks.

  • How to refresh XML file  from my client machine

    Hai All
    I have temp.XML and temp.XSL template in our server machine.
    when i give a print from client machine first time it gives the record,and next time it did not get refresh.Always it shows the previous records in the browser.But when i go into the server machine and click on temp.xml,it shows the current record(correct records)
    How to refresh XML file  from my client machine?
    Regards
    Dhina

    You never delete a Time Machine backup by dragging it to the Trash. You are supposed to use the TM application to manage the backups. What you will need to do now is to simply erase the drive using Disk Utility.

  • Unable to view the reports in PDF from Workspace

    Hi Experts,
    I am able to view reports using Worksapce in HTML but not in PDF whereas ghostscript is installed on the FR reporting server. Bin and Lib folder of ghostscript are also in PATH of FR host. Please help how can I view the reports in PDF format.
    Thanks a lot in advance.
    -Naveed-

    Hi Vivek,
    Thanks for your reply. I am using the Hyperion Financial Reporting (11.1.1.3) server on Windows 2003 32 bit and GNU Ghostscript is only available for unix type of OS. On one of our old 9.3.x env on Windows 2003 is working fine with regular ghostscript. So seems issue is something else. Is any log files which I can review and post the error for you ?
    Thanks
    -Naveed-

  • Is it possible when saving the psd file to have an automatic jpg file saved at the same time?

    My work involves preparing images for printing lightboxes and window installations.  My clients require to pre-approve the photos before printing.
    I usually save my files as psd but since the files are very large in this format I usually save another copy as a jpg file that has a much smaller file size.  This makes it possible for me to add these to a presentation and and send them to my client.
    Is it possible when saving the psd file to have an automatic jpg file saved at the same time?  Or do I still have to do this manually?

    If you save the document manually as a PSD file in Phtoshop not from within an Action, Script, Plugin or Droplette.  You may be able to write a Photoshop that would do as save as Jpeg,  And you should be able trigger its execution by setting up a Script Save event using the Script event manager.  When You do a manual save  the script should be triggered.  I wrote may be able to for I have never tried to write that script or set up a Script Manager Save event.  I have only use open events.

  • Getting IllegalThreadStateException, while exporting the report to PDF

    Hi Friends,
    I am using JRC to create report in PDF format.
    But intermitently I get java.lang.IllegalThreadStateException while trying to export ReportClientDocument into PDF format using the PrintOutPutContrller.
    The I am using for this is
    ExportOptions exportoptions = new ExportOptions();
    PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
    exportoptions.setExportFormatType(ReportExportFormat.PDF);
    exportoptions.setFormatOptions(pdfOptions);
    reportInputStream = reportClientDocument.getPrintOutputController().export(exportoptions);
    The exception I get is:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.IllegalThreadStateException---- Error code:-2147467259 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:114)
    at com.solidcore.as.report.ReportJob.execute(ReportJob.java:66)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    I am using JRC that comes with CR4E 2.0. The Report is designed using Crystal Report 2008.
    Please help me in solving the issue.
    Thank you,
    Deepak

    Hi Ted,
    Thank you for the answers.
    In our applications the Report will be generated in two ways.
    1. A user clicks on a link on web, and the report is generated in PDF format and sent via http.
                At present we are creating a new
                ReportClientDocument for every request and using ExportControl.processHttpRequest() API
                the report in PDF format is sent user through response.
    2. Quartz schuduler trigger a job, whose work is to generate Report in PDF format into a file, and the
              generated pdf file is sent to users via mail.
              Here I user ReportCLientDocument.export() API to get the InputStream and use the input stream
              to create PDF file.
    It is possible that a user is requesting a report on Web Page and the same report is being generated by Scheduler at the same time. But in each case a separate ReportClientDocument is being used.Since Report containse a huge data, and it takes time to generate PDF file so, it is possible that a given RPT file is opened by two spearate ReportClientDocuemnt (one via web user and other via Scheduler) at the same time.
    The have got rid of my earlier exceptions by sycncronizing the ReportClientDocuent.export() API.
    But now am getting following exception intermittently.
    2009-05-01 16:47:45.859 GMT+05:30 [ERROR] [ReportJob.java:137] [AnalyticsScheduler_Worker-10(34)] - [] Could not generate the Report.
    java.lang.NullPointerException
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:123)
         at com.solidcore.as.report.ReportJob.execute(ReportJob.java:75)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    2009-05-01 16:47:45.859 GMT+05:30 [ERROR] [JobRunShell.java:211] [AnalyticsScheduler_Worker-10] - Job reportJobGroup.reportJob threw an unhandled Exception:
    java.lang.NullPointerException
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.case(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.close(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.close(Unknown Source)
         at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:155)
         at com.solidcore.as.report.ReportJob.execute(ReportJob.java:75)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Edited by: Deepak Mishra on May 4, 2009 5:47 PM

  • While saving the Ai file its taking much time

    I am using windows 7 and Ai CC, when i am working on files while saving the Ai file its taking much time. I got 4 GB RAM. now i got better system too with ram of 6GB. stillthe Ai is taking much time to save 300 MB file.

    Thank you Jdanek.
    1. I am saving the file in my local HDD only.
    2. Scratch disk is F Drive [100 GB free space], there no data is stored.
    3. Even i increased the Virtual memory too.
    4. Now I switched off the "Save with PDF compatability" too,  No luck!

  • In the ReportDocument.Load method it tries to connect using the using the connection information embedded in the Report File

    Post Author: bhaveshbusa
    CA Forum: Crystal Reports
    In the ReportDocument.Load method it tries to connect using the using the connection information embedded in the Report File. When the application calls ReportDocument.Load(reportFileName). This
    tries to connect to the database using the connection information embedded in
    the "reportFileName". This was only realised on checking the ODBC Trace
    Log. The connection itself is not a problem. The problem is that the embedded
    connection information is related to OLD production system. And failed
    connections had raised some concerns.
    Note: I am using
    SetDataSource to populate the data for the report. So I don't need the
    connection.
    Is there any way I
    can disable this auto-connect?
    Thanks and
    regards,
    Bhavesh

    960738 wrote:
    I need a help in answering one of the issue encountered last week.
    I have created a database link and tried to access the information from a table using the program written in another language. The password provided was incorrect for that user while creating database link. So we expected that,while retrieving the data, Database connection has to be errored out as password provided is incorrrect.
    But unfortunately, user account was locked out. When i checked with DBAs they mentioned that it tries to connect 16 ports with in a min of time.we were shocked as it STOPS another scheduled jobs with that user. and affects production badly.
    As per the program, it has to connect only one time and yesterday we tried to execute the program in DBAs observation and it errored out as expected. Didn't tried for multiple ports.
    Now the question is, WHY the database connection established 16 times last week and caused user account locked. DBAs are unable to answer it. Any EXPERTs opinion on this would greatly appreciated.
    I have verified managing ports in oracle documentation, it was mentioned that if one port is busy it will try to connect to another port in the range of ports mentioned during the installtion. DBAs verified ports related file and it was blank. and they are not agreeing with this reason. Please HELP me in finding the correct REASON for this.
    is it a NETWORK issue or issue with DATABASE SERVER only?
    Thanks
    SSP
    Edited by: 960738 on Sep 22, 2012 9:13 PMDBLINK is 100% oblivious to the fact any port exists.
    DBLINK only contains username, password & TNS Alias.
    can you post actual SQL & results?

  • I can able to see odbc entries in virtual regisrty of the sequence. But on client machine I am unable to find them

    Hi,
    I have created a sequence I can able to see odbc entries in virtual regisrty of the sequence. But on client machine I was
    unable to find the ODBC entries. Actually the same application is worked in Windows 2003. Now I am creating the same for WIndows 7.
    Application: LOB
    Sequence on Windwos 7
    Sequencer App-V 4.6 
    Thanks in Advance.

    Have you tested the ODBCs aren't there (and/or the app doesn't work), or are you only looking at regedit?
    http://blog.gridmetric.com/2011/09/26/possible-caveats-in-mixing-32-bit-and-64-bit-app-v-packages-and-environments/
    We have seen sometimes where the registry keys aren't visible under wow6432 node, but are really there.  I would suggest opening up the ODBC (odbcad32.exe) in the bubble, and see how things look.

Maybe you are looking for

  • Hyperlnk, remove pagestream with frame when reprt open in pdf/open new wndw

    Reports 10GR2 I am opening up Report B, when an item in Report A is clicked on the report and pass that as a parameter to the Report. This functionality is working. I have put the below code in the field Hyperlink property /reports/rwservlet?&cmdkey=

  • Run command line from receiver

    Hello, I write script to transfer file from our local drive to sFTP server. I try to run  the script from Run Operating System Command After Message Processing in CC The script not run. When I try to run this script from our XI server from CMD the sc

  • Use of Statistical key in CATS

    Hi , Can any body guide me what is the use of Statistical key in CATS and where he options for its dropdown is mainatained? I need this for urgently, So kindly help. Regards

  • Removing Logic / Dynamic logic

    Hello all... this is something I have been thinking about for a few weeks and every once and a while I get inspired to see if I can find a simple solution to a rather annoying (but not critical) problem I am having with a bit of code... and in fact..

  • Can I recover itunes tracks that were downloaded straight on to my iphone4 that was stolen?

    My iphone4 was stolen and had about £200 worth of itunes songs that i had downloaded straight on to the phone...I hadn't synced the phone with the PC for ages so they are not in my itunes on the PC, can i recover this music? Help!