Display report in PDF w/o save

Hi,
I want to display Report on xmii browser without saving , I tried PDF action but it is giving error when calling url "File doesn't begin with %PDF-". When using image saver for saving file it saved on given path successfully.
I also used isBinary=true in url paremeter, which I found in forum for one of the reason of this error but still it didn't work.
Steps I am following for test case:
1. Create PDF document action block
2. Create PDF page action block - link to pdf document
3. Craete PDF text action block with some value - link to pdf document
4. Assign output parameter of PDF document action to BLS transaction output of type string.
5. call url:
http://servername/Lighthammer/Runner?Transaction=TestBLS/TestPDF&OutputParameter=Output&isBinary=true&Content-type=application/pdf
Please advise if I am missing something, I am using xMII 11.5.
Thanks and Regards,
Alok

Muzammil - Indeed Runner works with 11.5 too and its the Key to trigger a BLS trx via URL.
You can use Illuminator to execute Query templates so on via URL.
Alok - Your URL looks good but still if you are getting same error "%PDF" then check whether you are providing exact Output parameter you have mapped in BLS trx.
Also you can refer to below few threads on the same issue.
[Thread1|Displaying PDF files created with BLS in xMII 12]
[Thread2|Creating PDF]
[Thread3|Stream a PDF using Runner ?]
Hope this helps!!
Regards,
Adarsh

Similar Messages

  • After generating report in PDF in browser, save on client machine in diff.format

    I want to display my report in the Web Browser (using Servlets), in PDF format.
    Now, the user should be given the option to save this report onto his machine as a local file in a format of his choice (HTML, RTF, PDF, Excel). How can I do this?
    null

    Hello,
    These formats are very different. You can only do this by re-running the report. You could put hyperlinks in the source PDF file that pass on the same command line arguments that were used to run the PDF report, except that DESFORMAT would be changed to another format (HTML, RTF, DELIMITED).
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Displaying report in .pdf format while Running oracle reports over the web

    I am running a report over the web via IE. I am suing .pdf
    format as the file type. The problem I am facing is that the
    report comes out with a blank in acrobat reader if there are
    just one or two records - i.e less thatn one pagefull. THe
    reports displays output only when there ar more than one
    pagefull of records.
    Any explanation for this bezarre behavior and any suggestions?
    I will very much appreciate your help.
    Regards
    Prasad.

    in R12 I found 2 choice
    1) when submitting requests (if available) you can set the output format by using the Options button (upon sompletion section):
    layout --> format --> select format you need (RTF/HTML/EXCEL/PDF)
    2) in the request form (view->request) selecr the report you want to reprint in the Tools menu select print/republish, in the html page that pop up select output format you want, number of copies =1 submit
    www2p

  • Displaying report in PDF with Zoom level at 100%

    Hi,
    I am using ReportDocument.ExportToHttpResponse() to export the desired reports to the PDF format. The report is being displayed on the screen immediately. I want to show the report at 100% zoom level every time the user export the report. My existing code segment for this purpose as follows:
                    ExportOptions exportOpts = new ExportOptions();
                    PdfFormatOptions pdfOpts = ExportOptions.CreatePdfFormatOptions();
                    pdfOpts.UsePageRange = true;
                    pdfOpts.FirstPageNumber = 2;
                    pdfOpts.LastPageNumber = Int32.MaxValue;
                    exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
                    exportOpts.ExportFormatOptions = pdfOpts;
                    rptDoc.ExportToHttpResponse(exportOpts, Response, false, "");
    tried to find out any related setting in PdfFormatOptions object but to no avail. Please suggest any possible option to force the viewer to open the report at 100%.
    Regards,
    Ali
    Edited by: ali.net on Jan 11, 2012 2:17 PM

    Hi Ali,
    Please refer to the 'Rules of Engagement' alwas provide enough information.
    - Version of Crystal Reports with detail patch level.
    - Version of Visual Studio
    - Do you see the same behaviour when the report is exported from CR viewer export button?
    - Try using [ExportToStream|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333533383337%7D.do]
    rd.ExportToDisk(ExportFormatType.PortableDocFormat, "C:
    ep1.pdf");
    See if it reproduces the issue.
    - Bhushan.

  • Display reports on PDF file on the client.

    I'm generating reports on web enviroment.
    I want to know how to display the report output on the client using a pdf file?????. Because by default the server generate an html file displayed on the web browser.
    David Alarid.

    Add "desformat=pdf" to your URL. Typically you're URL will look like:
    http://<server>:<port>/reports/rwservlet?report=<reportName>&destype=cache&desformat=pdf&...

  • Oracle 6i report on pdf veitnam character is not displaying properly

    Dear ALL,
    we are facing problem to display 6i report on pdf for veitnam characters.
    we have database characterset is UTF8.
    and client also is UTF8.
    report in 6i rport is displaying corect to save that in pdf some vietnam character is not displaying proper on pdf.
    thanks in advance.
    sher khan

    we used UTF8 which worked fine with that.

  • 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

  • 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

  • Not able to save deski report as PDF through infoview

    Hi,
    when I try to save a deski report as PDF through infoview error appears as:
    Your request could not be completed because a failure occurred while the report was being processed. Please contact business administrator.[RCIRAS0546] (Error: INF)
    we are using BOXI 3.1/ SP2.
    Please let me know the possible solution for this.
    Thanks
    DLN

    Are you migrated from earlier version to 3.1.
    YES,
    here you go,
    Have a back door way to fix the problem...
    We were having the same issue with DeskI documents while upgrading from XIR2 to XIR3.
    It's tied to documents that are set to Refresh on open
    If you import the report, set it to "not" refresh then publish it, test it and it should run fine. Once you get it working correctly you can republish the report again and turn the "Refresh on Open" back on.
    It should work fine from that point on.
    Thank You!!
    Sent from iPhone
    Edited by: BOCP-BOE on Oct 19, 2010 12:01 AM

  • I want to run jasper Report as pdf to display arabic letter

    i want to run jasper Report as pdf to display arabic letter butv when i use
    byte[] bytes =JasperRunManager.runReportToPdf(report,parameters, conn); display ?????
    i hope anybody to help me
    thanks
    Edited by: Amr Ahmed on May 2, 2011 2:08 AM

    DECLARE
    vParamList PARAMLIST;
    BEGIN
    vParamList:=GET_PARAMETER_LIST('MyRep');
    IF NOT ID_NULL(vParamList) THEN
    DESTROY_PARAMETER_LIST(vParamList);
    END IF;
    vParamList:=CREATE_PARAMETER_LIST('MyRep');
    SET_REPORT_OBJECT_PROPERTY('report_path\emp_rep_def',REPORT_DESFORMAT,'PDF');
    RUN_PRODUCT(REPORTS,'report_path\emp_rep_def',ASYNCHRONOUS,RUNTIME,FILESYSTEM,vParamList,NULL);
    END;

  • Save SSRS Report as pdf using Reporting Services

    I've been trying to convert a SSRS Report to PDF and save to
    my local drive using the Reporting Web Services. Though I'm able to
    generate the corresponding pdf file but the contents of the file are
    missing. I've checked that the report I'm trying to convert is not an
    empty one. Only the header section is present there within the generated
    pdf files. Below is the code I'm using:
    protected void GeneratePDFFromReport(object sender, EventArgs e)
    RS2005.ReportingService2005 rs;
    RE2005.ReportExecutionService rsExec;
    // Create a new proxy to the web service
    rs = new RS2005.ReportingService2005();
    rsExec = new RE2005.ReportExecutionService();
    // Authenticate to the Web service using Windows credentials
    rs.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
    rsExec.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
    //rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = "http://servername/reportserver/reportservice2005.asmx";
    rsExec.Url = "http://servername/reportserver/reportexecution2005.asmx";
    string historyID = null;
    string deviceInfo = null;
    string format = "PDF";
    Byte[] results;
    string encoding = String.Empty;
    string mimeType = "application/pdf";
    string extension = String.Empty;
    RE2005.Warning[] warnings = null;
    string[] streamIDs = null;
    // Path of the Report - XLS, PDF etc.
    string fileName = @"C:\Report\MemberReport.pdf";
    // Name of the report - Please note this is not the RDL file.
    string _reportName = @"/ReportFolder/ReportName";
    string _historyID = null;
    bool _forRendering = false;
    RS2005.ParameterValue[] _values = null;
    RS2005.DataSourceCredentials[] _credentials = null;
    RS2005.ReportParameter[] _parameters = null;
    try
    _parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials);
    RE2005.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
    results = rsExec.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
    Guid siteID = SPContext.Current.Site.ID;
    GuidwebID = SPContext.Current.Site.OpenWeb().ID;
    stringbudgetName = string.Empty;
    try
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSitesite = newSPSite(siteID))
    using(SPWebweb = site.OpenWeb(webID))
    web.AllowUnsafeUpdates = true;
    web.Files.Add(web.Url + "/Shared Documents/SharepointMemberExpenseReport_" + DateTime.Now.ToShortDateString().Replace('/','-') + ".pdf", results, true);
    web.AllowUnsafeUpdates = false;
    catch{ }
    try
    FileStream stream = File.Create(fileName, results.Length);
    stream.Write(results, 0, results.Length);
    stream.Close();
    catch { }
    results = null;
    catch (Exception ex)
    throw ex;
    Any help would highly be appreciated. Thanks.

    use this code, save the byte array into format of pdf
    public static byte[] ExportReportInPDF(ReportViewer ReportViewerCompetency)
    Warning[] warnings;
    string[] streamids;
    string mimeType;
    string encoding;
    string filenameExtension;
    byte[] bytes;
    if (ReportViewerCompetency.ProcessingMode == ProcessingMode.Local)
    bytes = ReportViewerCompetency.LocalReport.Render("PDF", null, out mimeType,
    out encoding, out filenameExtension, out streamids, out warnings);
    else
    bytes = ReportViewerCompetency.ServerReport.Render("PDF", null, out mimeType,
    out encoding, out filenameExtension, out streamids, out warnings);
    return bytes;
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Save webi report as pdf programmatically

    Does anyone has any SDK code sample or can point me to the location of code sample on how to save a webi report as PDF file programmatically? Also, is the ReportEngineSDK is sufficient for this task or I need some other SDK?
    We are running XIr2 SP1 on Windows Server 2003, with Tomcat as web container.
    Any help will be very much appreciated.

    Hi,
    I think Using ReportEngine SDK you would not be able to save the webi report in PDF format.However it could be possible if you schedule a webi report to PDF format to unmanaged disk.
    You can refer the following tutorials given in developer library's BusinessObjects Enterprise SDKs. You can either use .NET or Java SDKs.
    How to schedule a report to a destination (FTP, SMTP, Disk, Printer, Inbox)
    How to schedule and view Web Intelligence documents
    Here is the link for developer library:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    Thanks,
    Swati

  • Hi there, i've just finish our schools year book (voluntarily) and it has 155 pages incl. front/backcover. This file has 1800 links a lot of photos and a few reports. everytime i go to save as PDF it freezers on page 66. i need the book printed in hi-res?

    hi there, i've just finish our schools year book (voluntarily) and it has 155 pages incl. front/backcover. This file has 1800 links a lot of photos and a few reports. everytime i go to save as PDF it freezers on page 66. i need the book printed in hi-res? im running out of "printing time" as we need it back to school by 10th december for 12th December distribution.
    what do i do? if i save it in low res pdf everything will be a blur...can someone please come to my rescue. i have a
    OS X version 10.8.2,
    Processor: 3.06 GHz Intel Core 13,
    Memory 4 GB 1333 MHz RAM
    Startup Disk is Moutain Lion
    my file is about 24 GB I Purchased a 32 GB USBA stik to save and send to printers.
    PDF made easy assistance please anyone out there....?

    I do not have InDesign so I can't help you there.
    Here is an article from Adobe:
    http://helpx.adobe.com/indesign/using/exporting-publishing-pdf.html
    Export an open document to PDF for printing
    Choose File > Export. 
    Specify a name and location for the file.
    For Save As Type (Windows) or Format (Mac OS), choose Adobe PDF (Print), and then click Save.
    When you select the Adobe PDF (Print) option, you cannot include interactive elements in the PDF. To export an interactive document to PDF, see Create interactive documents for PDF.
    Do one of the following:
    To use a predefined set of job options, choose a preset from the Adobe PDF Preset menu.To create a PDF/X file, either choose a PDF/X preset from the Adobe PDF Preset menu, or choose a predefined PDF/X format from the Standard menu.To customize options, select a category from the list on the left and then set the options.
    For Compatibility, choose the lowest PDF version necessary to open the files you create.
    Click Export (Windows) or Save (Mac OS).
    To reset options to the default, in the Export Adobe PDF dialog box, hold down Alt (Windows) or Option (Mac OS) and click Reset. (The Cancel button changes to Reset.)

  • Display report on the web in pdf format

    I am attempting to display a report in pdf format where I have passed parameters to it and it doesn't work.
    We are using Oracle Reports 6i.
    If I use the following CGIcmd line
    a: server=reports destype=cache desformat=HTML userid=test/test@db paramform=no %*
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?a+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    This report is displayed in HTML format.
    For the following test I only changed the format from HTML to pdf.
    The CGIcmd line became
    b: server=reports destype=cache desformat=pdf userid=test/test@db paramform=no %*
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?b+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    In this instance there is no report but there is a 'broken image' icon displayed in the top left hand corner of the screen. There are no error messages.
    This is the preferred method.
    As a test I also tried allowing the parameterer form with both HTML and pdf reports.
    The CGIcmd line was set to
    ax: server=reports destype=cache desformat=HTML userid=test/test@db %* %P
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?ax+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    This displayed the parameter page and when you accept the parameters, the correct report is displayed in HTML format.
    When I use the following CGIcmd line
    bx: server=reports destype=cache desformat=pdf userid=test/test@db %* %P
    and the URL
    http://sun9ias:7777/dev60cgi/rwcgi60?ax+report=INVOICE+p_mainkey=1111+p_subkey=1111.tif.
    As before, this displays the parameter page and when you accept the parameters, the correct report is displayed in pdf format.
    The only problem is where we are attempting to use the URL to go directly to the report in pdf format.
    Thanking you in advance of any help
    Michael Redford

    Hello ,
    You can try out the following
    1. Click on the Report name and bring up the property palette to show all of the properties for the whole report.
    2. Under Report Escapes->Before Form Value, change form method from POST to GET .
    Thanks
    The Oracle Reports Team

Maybe you are looking for