How to open PDF file generated by some ashx handler using POST parameters in Internet Explorer for W

I need to print content of pdf file by JavaScript.
To do this used HTML like this:
<OBJECT id = "Pdf" data = 'http://someurl.com/getpdf.ashx' name="Pdf2" WIDTH="300" HEIGHT="300"></OBJECT>
<a onclick="document.Pdf.PrintWithDialog() ;">Print file</a>
But to get pdf file I must POST few parameters to handler http://someurl.com/getpdf.ashx. How I can do it?

Hi Hi Sven,
Could you please tell me the type of report you were trying execute? Is it ERP or BW? And ALV or non-ALV?
We are supporting PDF report output type only for BW reports and for ERP non-AVL reports. For other types PDF format is not supported.
If you configure PDF for other report types then you will get report output in PDF file in SharePoint server, but you will face above error message while opening the file.
Regards,
Binson

Similar Messages

  • Many website will not open pdf files with firefox yet the same pages work fine with internet explorer default app

    Typically, I have to use the default android internet app to view pdf files on my android. The last page I tried was my progressive website to view my policy documents. Firefox just does nothing when I click on a pdf file. When I go to the download folder, the file is there but has 0kb size (or empty). The default android app goes right to download and shows up in the top android status menu showing it is downloading.
    This problem has been around for a long time now and is still not resolved.

    Here is one I just tried. It works on my ipad2. When using my android, the file shows up in the download folder, but as usual it is an empty file. Even when the pop for "view file in cloud viewer" is choosen, it loads a blank page.
    http://www.carlsalter.com/harley-service-manuals.asp
    then choose the 2nd file in the list, file named "harley_davidson_flh electra glide 1970 owners manual v2_2"

  • How to open pdf files in FireFox through jsp page?

    hi all,
    i have a problem when i click the link in jsp page. whenever i am clicking the jsp page link it wants to open a pdf file, the pdf file is located in remote system. its working properly in Internet Explorer. but i am opning this in FireFox means its not opening. In firefox url that is not showing the exact path. optionally its showing like that:
    http://172.16.2.21:9090/FMS/source/
    journal/%5C%5C172.16.2.1%5C
    copyediting%5CELS%5C
    Manuscript_Screening%5CMS%5C
    RDTEST%5C02-Process%5C
    RDTEST-D-08-02051.fdf
    and my jsp code whichever working fine in Internet Explorer is :
    <%
    String newpath="\\\\172.16.2.1\\copyediting
    \\ELS
    \\Manuscript_Screening\\MS\\RDTEST\\
    02-Process\\RDTEST-D-08-02051.fdf";
    %>
    <a href="<%=newpath%>" target="dynamic"></a>can any one solve my problem. as soon as possible. thanks in advance.

    hi Edmondo ,
    This is html generated jsp compilation code.
    link1
    can u please give me the solution. thanks in advance......

  • How to open *.pdf files in BOXI r2 inbox

    I am scheduling as  *.pdf file for deski report.After scheduling i am getting *.pdf in my inbox.if the report is deski or webi we can use FC_REPORT_ENGINE or WI_REPORT_ENGINE to open the report's using java code.In same way how to open *.PDF file in Inbox?
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM

    Hi Ram,
    Following information might help you to resolve the issue.
    After logging into Desktop Intelligence, you may be presented with a message stating:
    u201CYou have received 1 document from users"
    Examining the Inbox from within the Desktop Intelligence client shows no objects visible in your Inbox.
    The object in your Inbox is in a format other than Desktop Intelligence format such as, PDF, XLS or other format. Therefore the object is not recognized by the Desktop Intelligence client inbox browser.
    Log in to Info View or the Central Management Console, browse to your Inbox and verify the file name and format that has been sent to your Inbox. The object may be saved, copied, moved or deleted as necessary.
    Regards,
    Sarbhjeet Kaur

  • How to open PSD file recieved via email on iPad using Photoshop Touch without Creative Cloud?

    Hi, how to open PSD file recieved via email on iPad using Photoshop Touch without the need of using Creative Cloud? Thanks.

    Hi Super Nemo
    Currently the only way to open psd files on Photoshop touch is via the creative cloud. Also, the layers you created from Photoshop on your desktop machine will be flattened when opened with Photoshop touch on your iPad. But you can retain the layers from the touch app when opening the psdx file on your desktop photoshop.
    This link might help you: http://forums.adobe.com/docs/DOC-1336
    -Sharon

  • Cannot open PDF files - generated response says I have to accept Licence Agreement. How?

    Cannot open PDF files. Message generated says "Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User Licence Agreement, then Quit and relaunch the browser." Surely I must have accepted the Licence Agreement at the time of installation and am unable to "launch" Adobe reader. Anyone else had this issue please?

    For Chrome I went went into the plugins: chrome://plugins/
    The "Chrome PDF Viewer" was disabled. I reenabled it and it allowed me to view the PDFs again.

  • How to open PDF files in Safari

    How does one open PDF files when using Safari

    Typically, you click on a link to a pdf file, and they open. If for some reason that's not working, you can right click on the link and download the file, then it should open in Preview, or Adobe Reader if you've installed that.
    What exactly are you trying to open, and what's happening when you try it?

  • How to open pdf files in browser using flex

    hi,
    my project is having a Document explorer wchich contains pdf
    files,iwant to open it in the browser.can any one tell me how to
    open pdf documents using flex programming(i tried with different
    thing like swf's but my client wants only pdf formatt).

    Another option is by calling a JSP page. This example will
    open a pdf file into a new browser without displaying the download
    "save" prompt.
    Function to call the JSP:
    private function downloadFlyer(event:Event):void {
    var jspLink:URLRequest = new
    URLRequest("jsp/downloadpdf.jsp?fileName=Fundraiser_flyer_2008.pdf");
    navigateToURL( jspLink, "_blank" );
    JSP code:
    <%@ page errorPage="error.jsp" %>
    <%@ page import="java.io.*" %>
    <%
    //Get the parameters
    String downloadFileName=request.getParameter("fileName");
    String fileName = application.getRealPath("/downloads/" +
    downloadFileName);
    File file = new File(fileName);
    if (!file.exists()) {
    throw new IOException("File does not exist.");
    // Get the size of the file
    long length = file.length();
    // You cannot create an array using a long type.
    // It needs to be an int type.
    // Before converting to an int type, check
    // to ensure that file is not larger than Integer.MAX_VALUE.
    if (length > Integer.MAX_VALUE) {
    throw new IOException("File too big.");
    response.reset();
    response.resetBuffer();
    response.setContentType( "application/pdf" );
    response.setHeader ("Content-Disposition", "filename=" +
    downloadFileName);
    //Prevent the Java error: "getOutputStream() has already
    been called for this response"
    out.clear();
    out = pageContext.pushBody();
    InputStream in = new FileInputStream(file);
    OutputStream output = response.getOutputStream();
    try {
    int curByte=-1;
    while( (curByte=in.read()) !=-1){
    output.write(curByte);
    } catch (IOException ioe) {
    ioe.printStackTrace(System.out);
    } finally{
    output.flush();
    in.close();
    response.flushBuffer();
    %>

  • How to Open PDF Files Embedded in an Excel File

    This is a solution for Mac users who need to open .PDF files that are embedded inside an Excel file created in Office for Windows.
    I hope this solution works for other file format combinations. I am doing some experimentation to find out and will repost if I have new learnings.
    Problem:
    - Colleague sends me a .XLS which has an embedded .PDF on one sheet
    - Office: Mac 2011 will not open the .PDF because of lack of OLE support
    Solution:
    - Copy the .XLS file to a new file
    - Rename the file from <filename.xls> to <filename.zip>
    - Open the .ZIP with Archive Utility
    - Browse into the resulting "decompressed" folder to filename > xl > embeddings
    - Find the file of interest, named something like <oleObject2.bin>
    - Rename to <oleObject.pdf>
    VOILA!
    The PDF is recovered in its fully glory.

    Hi Ram,
    Following information might help you to resolve the issue.
    After logging into Desktop Intelligence, you may be presented with a message stating:
    u201CYou have received 1 document from users"
    Examining the Inbox from within the Desktop Intelligence client shows no objects visible in your Inbox.
    The object in your Inbox is in a format other than Desktop Intelligence format such as, PDF, XLS or other format. Therefore the object is not recognized by the Desktop Intelligence client inbox browser.
    Log in to Info View or the Central Management Console, browse to your Inbox and verify the file name and format that has been sent to your Inbox. The object may be saved, copied, moved or deleted as necessary.
    Regards,
    Sarbhjeet Kaur

  • How do open PDF file with Adobe Reader?

    I failed to open PDF file with Adobe Reader? Please show how to fix it.

    Mac or Win? OS and Reader versions? Where is the file and how did you try to open it? What happened when you tried? Any error messages? Details, please.

  • My safari 5.1.7 is not opening pdf files. Suggest some solution

    Safari is not opening pdf files. Whenever i try to open, just gray screen comes.

    Select Help ▹ Installed Plug-ins from the Safari menu bar. Besides the following, what plugins are listed?
    iPhotoPhotocast
    Java
    QuickTime
    Shockwave Flash
    WebKit built-in PDF

  • How to open PDF file from WinHelp

    Hello everyone
    I hope someone can help me with a little problem I have.
    I have read the topics about using the ExecFile macro to open
    pdf files that will always be at a specific location on a computer.
    However, I would like to open a pdf that can exist anywhere
    on the Computer, because it is possible to install our software
    anywhere on the Computer, and as our software is rebranded the file
    structure changes for each brand.
    please can someone come up with an answer to this llttle
    teaser?
    Many Thanks
    Sean

    Hello everyone
    I hope someone can help me with a little problem I have.
    I have read the topics about using the ExecFile macro to open
    pdf files that will always be at a specific location on a computer.
    However, I would like to open a pdf that can exist anywhere
    on the Computer, because it is possible to install our software
    anywhere on the Computer, and as our software is rebranded the file
    structure changes for each brand.
    please can someone come up with an answer to this llttle
    teaser?
    Many Thanks
    Sean

  • How to open pdf file in jsp having spaces in file name ?

    hi all,
    i have to open a pdf file in a jsp but some times that pdf file has spaces in the filename
    <a href ="openPdf.jsp?fileName=xyz.pdf">some  pdf file.pdf </a>how to open the pdf file in this case

    more info: java.net.URLEncoder or use response.encodeURL(...) to ensure sessionid is added when cookies are disabled

  • Not possible to open PDF file generated by Report functionality

    Hello,
    we are facing the problem that reports in PDF format deliverd in SharePoint by Duet Enterprise cannot be opened by Adobe Reader. The error we get is the following:
    Adobe Reader could not open "filename.pdf" because it is either not a supported file or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    When trying to open it with Internet Explorer the following error message pops up:
    File does not begin with '%PDF-'.
    Does anyone know how to fix this problem?
    Thanks in advance.
    Kind regards
    Sven

    Hi Hi Sven,
    Could you please tell me the type of report you were trying execute? Is it ERP or BW? And ALV or non-ALV?
    We are supporting PDF report output type only for BW reports and for ERP non-AVL reports. For other types PDF format is not supported.
    If you configure PDF for other report types then you will get report output in PDF file in SharePoint server, but you will face above error message while opening the file.
    Regards,
    Binson

  • How to open a file generated in 2.0 in CS2 4.0.5

    Hi
    I've got an .indd file generated in InDesign 2.0, that I'm trying to open in 4.0.5, but I don't seem to be able to open it, as there are various plug-ins missing.
    Any ideas on how to do this? Is there another save option in 2.0 that will bypass the missing plugins?
    Thanks
    Aidan

    Damn! Now my wife has something else to call me! Sorry but I read these and other forum posts quite often to see what I can garner from them for my own use to increase my abilities w/my CS2 version. Guess I should change my screen name to ... "Les the Lurker"... hummmmn. You're right, THAT doesn't sound derogatory at all! LOL Thanks for the heads up. have a great day all... (back to lurking!) Les

Maybe you are looking for

  • New to Flash AS3, Need help with some weird issues, have .fla link attached...

    Basically, the buttons are not visible when siteplan_mc is replayeed after floorplan closes, but they still work. Most things are only working on double click for soe reason, tho I have them to function on click. and the back button only woorks on un

  • Unable to create restore disk image with Disk Utility

    I've tried three times in order to create a restore image of the users' volume of my Powerbook. I followed exactly the procedure explained typing "man asr" in a terminal window. I booted the Powerbook in target disk mode while connected to my iMac G5

  • Is my Zen Touch dyi

    Hi all,?I've got a 20Gb Zen Touch, and I'm afraid that it may well be kaput. I like it, and I've been using it everyday for a?couple of?years now, but recently it started 'stalling' halfway through a track. Not every track, but maybe 3 in 7. It was f

  • 1/8 of screen is flashing

    Hello, MacBook Air The right most 1/8 of the display is flashing. And now,the left 1/8 has started flashing. Couple of screen shots

  • Query with a condition - Overall results row displays incorrect value

    Hi All, I have a bw query with top 40 conditions. However, The Overall Result Row Figures Do Not Equal The Sum of the Column Rows. Although the top condition is activated, the overall result still displays the overall result of the whole report. I ha