Displaying PDF in new Browser window

Hi all,
I have a question about displaying a invoices in pdf format in a new window. I read several threads about this, but I haven't been able to solve my problem.
I'm using following code:
append the pdf to the response
  cl_wd_runtime_services=>attach_file_to_response(
    i_filename  = 'test.pdf'
    i_content   = lx_pdf
    i_mime_type = 'application/pdf'
    i_in_new_window = ' X'
    i_inplace       = 'X' ).
The content (lx_pdf) is retrieved from a smartform, via the function module for the smartform in question, after which I convert the OTF Data (JOB_OUTPUT_INFO-OTFDATA) to XSTRING using FM SCMS_TEXT_TO_XSTRING. The returned data (buffer of type xstring) I use for afore mentioned method. But all I get to see is the following:
//XHPLJIIID    0700 00000000001
IN04EZZ_MO_SMARTFORM_TEST
IN05TEST_PAGE_1
OPDINA4   P 144  240 1683811906000010000100001
IN06MAIN
IN06TEXT_TEST1
MT0168902156
CP11000000E
FCCOURIER 120  00144 SF001SF001110000144E
UL +0000000000000
CT00000000
ST0590441This is a text page for displaying PDF in a
MT0168902396
ST0547238new window
MT0168902636
ST0460832called from within a WD application
MT0168902876
ST0144010Application
EP
The text is correct, but it is not displayed as PDF in new window, and of course I'm not interested in all the formatting codes in front of every line??
I should be possible to display a pdf in a new browser window without having installed everything needed for Adobe Interactive forms, or isn't it??
Kind regards,
Micky.

Hi Micky.
If you have the spool number of the printed billing document you can use
component WDK_SPOOL_TO_PDF in order to display spool as PDF.
Just transfer spool number and format to default inbound start up plug.
Cheers,
Sascha

Similar Messages

  • Download blob as pdf. Display inline in new browser window

    I am using the standard functionality of loading blob data, using a browse/upload item, and retrieving blob data using a report on a blob column. One of the settings when setting up upload and retrieval column attributes is called "CONTENT DISPOSITION". If I set it to "INLINE" the file downloads when clicking the "DOWNLOAD" link and displays in the appropriate viewer, e.g. for PDFs it's the browser window. How do I get the PDF file to display in a NEW browser window so the user does not have to leave apex?
    Paul P

    Alternatively, do pdf's already render in the browser window?
    http://www.mydigitallife.info/2007/06/17/disable-pdf-from-opening-in-web-browser-ie-firefox-opera-safari/
    Trent

  • Portlet Item Attr: "Link That Displays Item in New Browser Window"

    I have been searching the forums for a similar experience, but haven't found anything quite like this:
    I have a couple of portlets. One is a Discoverer Portlet, the other is something more basic: The "Developer News" portlet from the 9iAS Community portlet provider.
    After defining the portlets and looking at them, I edit the page and click the Edit button (little pencil) to edit the attributes.
    There are radio buttons for Display Options.
    One option is: "Link that Displays Item in New Browser Window."
    When I select this, OK, and then go back to the page, **the portlet doesn't show at all any more! There is no link, no nothing. Note that I have defined a Display Name, which should be the text for the link.
    It would seem that this feature flat out doesn't work.
    This technique for a popup works fine for an "Item" defined in an item region.
    Anyone?

    Yes -- I did do that after reading an article on metalink about such issues.
    This actually changes the problem.
    When I add the "Display name and image link" attribute to the region, I now do get a link.
    However, clicking it brings up an undefined Discoverer portlet.
    It works great for non-Disco portlets. For instance, I was able to pop up the "Developer News" portlet from the Oracle 9iAS Community portlet provider.
    I think the problem is that the link that Disco produces does not provide enough information to bring up the particular portlet. For instance, the URL does not have the workbook name, the worksheet name, the parameter values, etc.
    If anyone uses Disco w/ the portal, I would be curious to hear if anyone can reproduce this apparent bug / limitation.

  • Link That Displays Item In New Browser Window

    Hi,
    We use Oracle Portal Version: 10.1.4.0.0 (Build: 594).
    We've found that the following setting doesn't seem to work.
    Link That Displays Item In New Browser Window
    Even with that set on items, items ALWAYS open up in the same window,..not a new one.
    Has anyone else experienced this or is it just us?
    thanks

    Hi, this is a "bug". You need patch 5026969 to solve it.
    More info is in note 358722.1 - Items Are Opened In The Same Browser Window Even Though The Option 'Link That Displays Item In New Browser Window' Is Set.
    Regards, JW

  • Forcing link in one web based PDF to open link to another PDF in new browser window

    We have created a form using LiveCycle Designer ES2.  The form is found on our website and is used by faculty to submit proposal information to our office.  Depending upon the answers to questions in the form if they say yes we had a link to another form that we would like them to complete and submit with the original PDF that they are working on.  The problem that we are having is that when they click on the form it opens the new PDF and all the data that they had entered in the original PDF is gone once the new form opens up.  Is there a way to force the new PDF via the use of some scripting that can go along with the link, or via the use of a button that can force the new form to open in a new browser window?  It is impractical for us to expect 1500 faculty members to change their browser settings to open new PDF's in a new window.  We have removed the links for now and have just put in text that says if they select yes they need to go out and complete the additional form.
    The form we are using can be found here: http://spo.usu.edu/files/uploads/SP-01.pdf
    The first three questions on page two where we reference the other forms is where we would like to be able to add the links to the new forms and have them open in a new browser window.  When the form is downloaded and opened in Adobe Acrobat/Reader the links functioned correctly, it just did not function properly when it opens in a browser.
    Thank you in advance for any assistance you can offer in regards to this issue.

    I used a button, removed the border/fill properties and underlined the caption to look like a URL.
    The click event is...
    // form1.page1.subform1.urlBtn::click - (JavaScript, client)
    app.launchURL("http://spo.usu.edu/files/uploads/SP-01.pdf",true);
    The PDF will open in a new window or tab, depending upon the browser configuration.
    Steve

  • Add button to open PDF in new browser window CS3

    I'm trying to add a button that says "Go" that will open a PDF in a new browser window.
    I've looked at the following article but don't see the "Select Action" pull-down.
    http://www.acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows
    Using Dreamweaver CS3.
    Thanks in advance.

    Hi,
    I hope I understood your question correctly, if so my suggestion may be helpful. Otherwise I think it's nearly the same what paul writes, I only made clear my proposal in a website for you, first a photo:
    and here is the link: http://www.goldschmiede-blumberg.de/pdf/adob_pdf.php.
    Note 1: "Ausgabe 9" und "ein Mausklick hier genügt" are links!!
    Note 2: " Um pdf-Dateien ...." Means: To read pdf files, you need the free Adobe Reader. The current version you can download from the Adobe website.
    Look at it's source code.
    Viel Erfolg
    Hans-G.

  • Adobe Reader won't display PDF in IE Browser Window

    I am using Adobe Reader XI and Internet Explorer v. 11.0.9600.17280.
    I have tried uninstalling and re-installing Adobe.  I've also checked IE Add-Ins and all Adobe Reader Add-Ins are enabled.
    However, you're poorly written software STILL WILL NOT display PDFs in browser any more.
    I need help, but since you're software is so horrible, you do not offer typical technical support.
    PLEASE HELP!

    My company is having the same problem and I was hoping for some kind of final explanation.
    The fix of resetting the Internet Explorer settings works for a time, then it later it has the problem again.  Our company has a reporting site which needs the documents to open in the browser to allow for drill down(generating another report based on a link in the document), so the reports have to be in the browser not a separate Adobe Reader Window.  We have tried other fixes on the Web like the TabProcGrowth=1, but still the problem happens later.
    Our users are tired of resetting their Internet Explorer settings every week or more.  As this has worked in all previous versions, I would agree the issue probably lies in Internet Explorer or at least partly in Internet Explorer, but we need some way to keep the files opening in the browser rather than a separate Reader window.  Any additional thoughts or fixes by anyone would be greatly appreciated.

  • Display pdf only in browser window

    Does anyone have custom code or javascript that will force a
    pdf to open in a user's browser window rather than follow their
    browser setting? I don't want the user to have the option of
    downloading the pdf and launching Reader.
    Thanks.

    .oO(lanoffs)
    >Does anyone have custom code or javascript that will
    force a pdf to open in a
    >user's browser window rather than follow their browser
    setting? I don't want
    >the user to have the option of downloading the pdf and
    launching Reader.
    Impossible.
    1) To be able to read the file it has to be downloaded to the
    user's
    machine.
    2) To view it directly in the browser, there has to be a
    plugin
    installed and activated, which is not always the case.
    Micha

  • Open portlet in new browser window

    Anyone know of a way to open a portlet, or a page containing a portlet, from a link into a new browser window? This is different than showDetailsPage, which opens in the same browser window.
    Thanks.

    I tried to do this through Item Attributes for the portlet (clicking the little pencil), where there is a radio button for "Display Options."
    One choice is: "Link That Displays Item in New Browser Window."
    (I do have something in for the "Display Name" which seems to be required to get a link.)
    However, this doesn't seem to work. No link shows.
    (It works fine for
    I have tested this with a Discoverer portlet, and also with a more generic portlet (the "Developer News" portlet in the 9iAS Community portlet provider).
    Is this broken / a bug?

  • Dreamweaver cs3 new browser window

    I have a link on my page which will display image in new browser window and window size is fixed but problem is it will display white background but i want it will display black blackground. i have more than 20 link of such type which will display image in new browser window of fixed size.
    Rajeev.

    Hi Rajeev,
    Based on what Paula (PZ) has written I was experimenting with things at my end also.
    @Paula: I took a different approach ...actually did this approach for the first time. Your solution of using document.write is perfect but I thought to share a way which I tried also...you may find it interesting
    Here it is:
    I created a link in the parent page <a href="javascript:;" onclick="openwin('property_files/banner.gif');">Link</a> and defined the openwin() funtion as following:
    <script type="text/javascript">
    function openwin(imgpath){
        window.open('imagewin.html',imgpath,'status=yes,scrollbars=yes,resizable=yes,width=800,he ight=600');
    </script>
    In the above i am passing the image path from the link's click and using it as window name (second argument in the window.open)
    Now I created this blank imagewin.html which has following code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    -->
    </style>
    <script type="text/javascript">
    function showImg(){
    var imgval=window.name;
    document.write('<img src='+imgval+'>');
    document.bgColor='black';
    </script>
    </head>
    <body onload="showImg();">
    </body>
    </html>
    So on this blank page I am calling a showImg() function and then I have captured the window name into a variable and then used document.write to create the image tag with the captured path and finally set bgColor as black.
    So using this one can simply pass the imagepath from each link and it would display new image each time!
    Worked well for me!!!
    Hows that?
    More than anytihng I just loved the fact that there is so much try and experiment with....I just love all this
    Regards
    Vinay

  • PDF will not display in an IE browser window

    I have the following setup:
    Windows Vista Business w/ SP2
    Internet Explorer 8 (8.0.6001.18813)
    Adobe Reader 9 (9.1.3)
    When accessing a PDF document using IE8, the PDF will not display in an IE browser window.  Instead, the PDF opens in a new Adobe Reader window.
    When accessing the same PDF in Firefox or Chrome, the PDF appears in the browser window.
    I have tried repairing Adobe Reader using the Help>Repair Adobe Reader Installation menu, both by running Adobe Reader as an admin and not.  I have confirmed that Adobe Reader "Internet" preference "Display PDF in Browser" option is enabled (checked).  I have enabled/disabled this preference without affect.  The PDF document is always opened in it's own Adobe Reader window.
    I have tested this using different PDF documents served up by different servers.  The result is the same.  The PDF document is always opened in it's own Adobe Reader window.
    How can I get the PDF to open in an IE8 browser window?
    I look forward to any suggestions offered.

    Hi Carolyn,
    I am experiencing the same symptoms as gaijindragonslayer described above, and my Internet Plug-ins folder is empty. I would like to have Preview as my default pdf reader, but am unable to view a pdf in Safari at all right now -- I have to download the pdf and then open it with Preview separately in order to view it.
    What else might cause this?
    Thanks for your help.

  • Pdf links will not open in new browser window

    I have created a pdf document in Acrobat 9 Pro that is password protected. You must enter the password to open it. In this document there are perhaps 15 links to other pdf documents. I set up each of the links to open in a new window. The links work as expected in Acrobat, each opening in a new window, however, when I posted the documents to the web, the links open in the same window as the original document. This would not be a big issue if the original document were not password protected, but each time the user clicks on a link, it takes him out of the original document. To get back to the original document requires re-entering the password. This is a major irritation with so many links.
    I know that you can set Acrobat to display the documents in its own window rather than in the browser, but my users don't know that. Control clicking on a pdf link does not open it in a new window as it would with an HTML link. Is there a simple fix to this problem that does not involve user intervention?

    Well, I came up with a solution, thanks to Ted Padova who offers a simple JavaScript solution on his blog at http://www.acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows.
    The solution is clearly laid out even for beginners, if you know how to create a link or button.
    It seems to me that a prime objective of Adobe in developing Acrobat would be to have it behave the same way in free-standing mode and as a plug-in. In this case it does not, and obviously, it has not for the last forty-eleven years that Acrobat has been on the market. Maybe some day they will get around to a fix for this obvious problem. In the meantime, read Ted's blog and be happy we have guys like him who can solve these problems.

  • PDF viewer into new browser window

    Hello,
    I use following code to open new browser window with PDF file. The URL passed to the method is link to SICF service which returns the PDF in the request with content-type = 'application/pdf'. New window is open with correct URL, but the content is not displayed - Refresh or Go button has to be pressed to display it. Don't you experience similar problem? Is this WD error or some IE security setting?
    Thank you and best regards,
    Ludek
      lr_window = lr_w_manager->create_external_window(
          url = ld_url
          title = ''
          modal = abap_false
          has_menubar = abap_true
          is_resizable = abap_true
          has_scrollbars = abap_true
          has_statusbar = abap_true
          has_toolbar = abap_true ).
      lr_window->open( ).

    Hi Ludek,
    Probably a compression problem. Have you turned off gzip compression for the pdf?
    Btw, an alternate solution without having a separate handler is to use the cl_wd_runtime_services=>attach_file_to_response() method.
    Best regards,
    Thomas

  • Display Integrated Oracle Report in New Browser Window

    Hi All,
    I am using APEX 3.0.1 and Reports Builder 10g and have integrated my Oracle Reports (.rdf) successfully with APEX.
    The trouble is that the report output (in PDF format) is opening in the same browser window as my APEX application and I would like to spawn a new browser window to display the report output.
    The report is being called from a button with a Target of URL and the URL Target is:
    &REPORTS_URL.&module=DEBITNOTE_REP.rdf&destype=cache&desformat=pdf&P_DEBITNOTEID=&P73_DEBITNOTEID.
    Kind Regards,
    Gary.

    Hi Garry,
    Had to do the same thing last week.
    1. Create a javascript function that accepts the report parameters and calls the window.open function for the reports URL
    2. Change the URL on the report button to call this new function
    It might also be worth using a cmdfile (see reports doco) to simplify the URL
    cheers,
    Ron

  • Command to open a PDF generated Oracle Report in New browser window

    I know this is probably something for the Oracle Forums but I'll ask anyway because I can't find any info out there on this, without some extra work.
    I am generating a PDF file from 10g Oracle reports on Linux RHEL 5 and storing the PDF file to the server. I can send that PDF file directly to a printer with the "lpr" command and that part works fine.
    What I'm wanting to do now is "View" the PDF from within the server in a new window. We are using RHEL 5 (Linux) platform and I'm trying to see if there is a way to open the file with a "command line" command that will open it in a new browser window or new window period (opening it with Adobe Acrobat).
    Does anyone have a command that will do this? Otherwise, how has everyone else been handling this. The idea of just viewing the previously generated PDF Report file will save us overhead on our database servers because they won't have to re-run some of the same reports over and over.
    Any help and assistance is appreciated.
    Chris

    Several options:
    - If you only want to show the pdf to the client without printing, use destype=cache and use WEB.SHOW_DOCUMENT after the RUN_REPORT_OBJECT (for examples search the forms-forum, there are lots)
    -If you have to generate the pdf to a file to get it printed, you could
    +use WEBUTIL_FILETRANSFER.AS_TO_CLIENT after the printing to transfer the file to the client, then use CLIENT_HOST to view it.
    +map the appserver-directory you generate the report to as a virtual directory in the application-server then use WEB.SHOW_DOCUMENT to directly access the generated file via url.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Encountered error while updating the payment document

    Hi Guys, I encountered an error while updating the payment document of one of our bank account. See below error message: Error: Unable to lock the record. Cause: The record is being modified by another user thanks, gracie

  • Populating dynamic PDF Form Content

    I have a livecycle form I designed that I need to populate with data coming from ColdFusion. Easy enough except for the dynamic areas of my form. I have numerous subforms in my PDF where a user can add extra fields (or rows in a table) and then submi

  • Can we call sceen of one program into another?

    Hi ABAPers,   I wish to know whether, is it possible to call the screen of one program through another program? I know, calling a subroutine of a program from another is possible but i want to know whether calling screen of one program from another i

  • Reservation created from a PM Order needs to create an automatic TR

    Hello Experts !! Needed your help much in a scenario where, A reservation created from a PM Order needs to create an automatic Transfer Requirement (TR) in WM directly which can later be converted to TO. (Please note that, I want to skip the GI part

  • I have sounds problems with iOS 7

    I have sounds problems with iOS 7. I can not hear my music, all the apps have no sounds. Only when I ask Siri has sound but it's too loud and awful. I found 2 errors with I ask to Siri what things she can do in Spanish the is an error and one word or