PDF locking when displaying it in iFrame in browser

Hi guys,
I have a webpage written in ASP.NET which displays a PDF in the browser using an iFrame. Relevant ASPX code is below:
<iframe id="ifrmPDF" src='<%=sFile %>'></iframe>
Where the variable sFile is the path to the PDF that I am displaying.
But for some reason displaying the PDF in this way is having the effect of locking the file so it cannot be updated on the server while somebody is viewing it. I was under the impression that when you view a PDF in a browser a copy was downloaded to the local machine and it was that which was being viewed but this doesn't appear to be the case.
Can anyone tell me of another way to display a PDF in a browser which will allow the file to be overwritten in the background?
Any help would be greatly appreciated and if you need anymore info then please let me know.
Thanks,
Al

Hi,
have a look at following message
This UI element is too broken to be really useful and cannot be fixed.
For integration of non-Web Dynpro applications, please use the Enterprise Portal instead.For embedding (help) texts and the like, please use the appropriate mechanisms, e.g. TextView, FormattedTextView, Explanation etc.
Portal layouts are way to presenting your iviews in portals.
Ashu

Similar Messages

  • When creating iframes for htm pages, I pdfs work just fine in all versions of Firefox. However, when I construct an iframe for an htm to be displayed on an htm

    ''duplicate of https://support.mozilla.org/en-US/questions/973637 - locking''
    When creating iframes for htm pages, I pdfs work just fine in all versions of Firefox. However, when I construct an iframe for an htm to be displayed on an htm, Firefox 24 will not load the htm/iframe.

    Hello,
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • Error when displaying a pdf file in an iFrame

    Hi,
    I would like to display a pdf file in my Java Web Dynpro application. I am using an iFrame element.
    The code I used is:
    // test if the file exists
    if( path != null)
         path = "D:\\Echanges\\Facture\\" + path + ".pdf";
    if (isFile(path)) // test if the file exist
         wdContext.currentContextElement().setPath(path); // we set the path of the file for the iFrame url
    else
         wdContext.currentContextElement().setPath("D:\\Echanges\\errorDocAccess.htm"); // here we set the path of an error file to display in the iFrame
    In the context, path is declared as a String variable and mapped to an iFrame. What happen when I lauch the program is the followig error:
    com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=D:/Echanges/errorDocAccess.htm
    I have checked the path of the error file and it is valid. How do I get to display my file ? The path is on the same server as the portal.
    Thanks a lot for your help.
    Thibault Schalck

    Not solved

  • PDF display problem in Iframe

    I have a main JSF page MainPage.jsp.
    User clicks on a button in this main page and a new JSF page ChildPage.jsp is opened in another window.
    The ChildPage.jsp has some data in it and also has 3 iframes and each of them again is a jsp
    (say Iframe1.jsp, Iframe2.jsp and Iframe3.jsp. )
    Onload of Iframe3.jsp it submits to a servlet and a pdf document is displayed in that.
    Iframe1.jsp and Iframe2.jsp are JSF pages where as Iframe3.jsp is a pure html as below
    <html>
    <head>
    <script>
    function tryMe(){setTimeout("submitForm()", 1000);}
    function submitForm(){
    document.forms[0].action="/ctx/MyServlet?Id=300";
    document.forms[0].submit();
    </script>
    </head>
    <body onload="tryMe()">
    <FORM NAME="MyForm">
    Please wait, the document is loading...
    </FORM>
    </body>
    </html>
    Now here is the problem.
    Sometimes this works fine and sometimes this just doesnt show up the pdf.
    I have put debug messages in servlet and it seems there is no error and
    the messages shows that the pdf is written to the outputstream,
    however i dont see anything on the browser.
    I tried adding a delay of 1 minute (as in the javascript above) in submission of the page
    the error reduced by 80% but still it occurs sometimes.
    What could be the cause. I couldnt think much .
    Any help will be appreciated.
    Thank You

    After so many hours of searching, I finally found both culprits!!!
    A) the blue: It was stupid of me, really... it was simply that the "highlight existing fields" was selected (right top corner, usually). Once I de-selected it, all the blue went away... but data continued to disappear except when a box was selected. See B...
    B) Do NOT, Never ever, use Preview to make changes in a .pdf file and then save the file... That was the problem!
    It must've happened a few times, for example it just did this morning, on my new laptop on which I hadn't set Adobe to be my default program for .pdf and the file opened in Preview... I didn't even notice...
    And after searching some more I found a few threads and all had in common that people had used Preview to make changes and save the file... seems that Preview corrupts the files!
    By the way, Eric, no, opening in Preview did NOT give the same results... but files I opened that had never been opened (or, at least, not tempered with) in Preview were all fine...
    Thanks for your help though!

  • Safari locks when opening PDF

    Need some help. Been looking for updates for Safari for windows no luck so far.. Now need the help of experts... Safari locks when opening a page that opens a PDF file. Is some-one able to help with info?
    I know I'm bad windows....

    Safari (3.1.1) crashes each time I open a pdf file, even when i just access it from a local drive. I use adobe acrobat 8.1.2. Reading pdf files via Safari used to work fine until a certain Acrobat update a couple of months ago.
    The behavior is that when I open any pdf file, it will display for about 5 seconds, and then shut down all the Safari Windows and Safari itself. When Safari is not loaded, clicking on the pdf will open Safari, and then shut it down after 5 seconds.
    Please help? and thanks!

  • Report Title Displaying in Multiple Lines on PDF Format when i Print in PDF

    Report Title Displaying in Multiple Lines on PDF Format when i tried to print in PDF Format, is there any limit for Report Title Characters
    Displaying Like -
    LRDP
    Open
    Label
    Paradigm
    Forecast
    Report
    Any Info Appreciated
    ~Srix

    Got It .. Just need to chnage the Width Parameter.......!

  • Cannot Preview when Display PDF in Browser is unchecked

    Acrobat Professional 7.0 under Internet in Preferences, when Display in PDF browser is unchecked and then I am in LiveCycle Designer 7.0, the PDF Preview option is not available and the tab is missing. I have already done the Detect & Repair to no avail. Does anyone have a solution other than checking/unchecking? Thx in advance.

    It was originally checked. I went in and unckd it & that's when the PDF tab disappeared. That is what is causing this whole thing. We have dozens of PDF files on Sharepoint & I work with that a lot. Due to needing to keep that main Sharepoint page open, that's why I chgd to not having PDF's open in the IE window. So at this point, it's a matter of keeping Acrobat open while working on the forms. Unless there's another way around. If not, I can live with that. The checking and unchecking was very time consuming.

  • Firefox 33 doesn't display a pdf file when using the response object

    Firefox 33.0.2 does not display pdf files when using the code below from an asp.net program, which works for previous versions of Firefox, and also works with IE. I'm using the built-in pdf viewer. All of my plugins are disabled.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Response.Clear()
    Response.ClearHeaders()
    Response.Buffer = True
    Response.ContentType = "application/pdf"
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.AddHeader("Content-Disposition", "inline; filename=" + strPDF)
    Response.WriteFile(strPDF)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    Session("filname") = ""

    Thanks cor-el. You pointed me in the right direction. It appears to me that a reported Firefox 33 bug with the handling of compression (Transfer-Encoding: chunked) is the culprit (https://support.mozilla.org/en-US/questions/1026743). I was able to find a work-around by specifying the file size and buffering. Below is my code, with some code from http://www.codeproject.com/Questions/440054/How-to-Open-any-file-in-new-browser-tab-using-ASP.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Dim User As New WebClient()
    Dim FileBuffer As [Byte]() = User.DownloadData(strPDF)
    If Not (FileBuffer Is Nothing) Then
    Response.Clear()
    Response.ClearHeaders()
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.ContentType = "application/pdf"
    Response.AddHeader("content-length", FileBuffer.Length.ToString())
    Response.BinaryWrite(FileBuffer)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    End If
    Session("filname") = ""

  • How to retain focus in Web forms 6i item when displaying pdf image

    How to retain focus in Web forms 6i item when displaying pdf image in a multi-record block?
    Hello.
    I have a Web Forms 6i program (version Forms 6.0.8.19.2) running in a 3-tier application. The web form program has a multi-record block containing invoices. When navigating to a record, the form should display the PDF invoice image which is stored in an Oracle 8.1.7 database as a BLOB in another window. When user press down-arrow, the next PDF invoice image should be displayed.
    I am able to accomplish the functionality above by using web.show_document('URL', target') in the when-new-record-instance. The URL being called is a PL/SQL Web Toolkit stored procedure using wpg_docload.download_file built-in.
    The problem is that the focus is lost on the Webform and the focus is shifted to the PDF image window when you navigate to the next record using down-arrow. I want to retain the focus in the form as this is a data-entry form, the operator will use down-arrow to go to the next-record rather than the mouse. I also only want to do this for this Invoice Entry form and NOT to all forms.
    Please advise how to resolve this problem. Thank you.
    Regards,
    Armando

    Magesh,
    the issue of a SSO protected form showing the logon dialog is a knwon issue for Windows200 and the Oracle9iAS base release. If you applied Forms Patch 1 then this should be solved. Hope that I am right in that you are using Oracle9iAS and not Oracle9iDS. Do you see the Single Sign-On logon screen or the Forms logon dialog directly? Check the forms90.conf file in teh forms90/server directory as this contains the Form sso settings (mod_osso) which by default is commented out and therefore inactive. You need to remove the commenting '#' characters and make sure that each sentence having a '#' in front, after that starts on a new line.
    The Forms deployment documentation within the Oracle9iAS docu provides this information too.
    Frank

  • When using one of the Windows 7 (32x) Aero themes, PDF's are displayed semi-transparent.

    I can't read PDF's in my Firefox browser anymore. It looks as if they are semi-transparent: The fonts are blurry, and they have the same color as my Aero theme frame. I can see my desktop photo through the fonts. When I save the PDF's and open them offline, they are displayed as they should. The prints also look normal. Btw, when I change to a classic theme, PDF's are displayed normal.

    this problem also posted here: https://support.mozilla.com/en-US/questions/863361

  • I have pdf files which get locked when i submit for conversion to either word or rt?

    I have pdf files which get locked when i submit for conversion to either word or rt?  Joe DeFalco

    Hi, what do you mean when you say they get "locked"?

  • Ipod displaying lock when turning up volumne,why?

    ipod displaying lock when turning up volumne, why?

    Hello Dawn,
    There may be a maximum volume limit set on the iPod.  See this article for more information.
    http://support.apple.com/kb/TA38403?viewlocale=en_US
    B-rock

  • Music stops when displays sleeps or when i lock the screen on my 7th gen nano

    When i am listening to my music on my newly purchased nano 7th generation, once the screen 'sleeps' or if I click on the lock key, the music pauses. I can't find anything to prevent this in settings. Please help.
    Regards,
    Tim

    Hi Metrofied,
    I'm sorry to hear you are having issues with your new iPod nano. If you continue having pausing issues with your 7th Gen, you may find the troubleshooting steps outlined in the following article helpful:
    iPod nano (7th generation): Hardware troubleshooting - Apple Support
    You may also want to see if it may related to this issue that was noted on the 6th Gen iPod nano:
    iPod nano (6th generation): Music stops when display turns off - Apple Support
    Regards,
    - Brenden

  • Very strange crash when displaying pdf tumbnails in iBooks 1.5

    Hi,
    Recently, I have experienced a very strange behavior in iBooks. The app opened normally and then, some seconds later, dispaly getts blak and the app closes abruptly.
    I have traced back this behavior: It occurs just when the cover tumbnail of some pdf books is displayed in any iBooks' library view (both in bookshelf view and in Title view)
    I removed the troubesome pdf, but found that some others ( wich worked fine fron a lot of time ago) produce just the same behavior.
    When (using the painfully method of trial, and l, and trial again! And again,... )  i finally deleted all the crash - related pdf's, iBooks worked fine again.
    The most intriging features related this behavior are: 1- It is related only with tumbnails. All the pdf are normally vieved using some other ipad psdf viever (such as Kdan Pdf Reader or Adobe Reader for ipad) 2- If yoy remove the cover as pdf first page ( even if you move such cover and put it as the second page, using software like pdf sam) the pdf works fine in iBooks.
    I suppose this is a (annoying) bug, but,is there any suggestion? Is there any way to disable The tumbnail feature in iBooks?
    Best regards

    Somehow this bug came up on my radar yesterday later in the day: the first two comments indicate different plugins, and the third refers to the Acrobat plugin:
    <blockquote>This seems to happen if Adobe Reader is used for displaying PDF documents (pdfjs.disabled set to true and Preferences > Applications > PDF to "Adobe Reader (in Firefox)").<br><br>Opening two tabs displaying PDFs and closing one crashes the other one.<br><br>Was able to reproduce with Firefox 36.0.1 and Adobe Reader plugin "Adobe Acrobat 11.0.10.32". When I tried to reproduce it later again in the same profile (or on Nightly and Beta), the tab didn't crash.</blockquote>
    https://bugzilla.mozilla.org/show_bug.cgi?id=1113190
    Sounds like your issue, but it's puzzling that they got a tab to crash and in your case only plugin-container.exe crashed.

  • I wanted to keep my locked screen display with the time and date from turning off is that possible

    So I enjoy my locked screen display with my chosen picture because it has the time displayed nice and big and its a cool nightlight but the locked screen display/wallpaper/time with date always goes black after 13ish seconds of locking it is there no way to let the locked screen stay on while charging? because it is awesome if it could stay on as a nightlight also so i dont have to press the lock button to see what time because the normal display is ugly am I just being super picky or am I not the only one who agrees or maybe it does exist im just stupid please respond when you can also thanks for reading much appreciated.

    wjosten wrote:
    Again, there is NO WAY to do what you asked: display the time constantly.
    I have a clock app that displays the time constantly on my iPad. I use it as a bedside clock. Many clock apps have the ability to disable autolock just within that app. Whether there is one that lets you pick your own background, I don't know but I wouldn't be surprised if there were, based on the number of clock apps out there. While what I'm suggestion is not precisely what the OP asked (display the system lock screen), it seems it might be a possible workaround.

Maybe you are looking for

  • Removing Scroll bar from Applet

    My webpage is having different applets. One of my applet is in a <TD> tag <APPLET CODEBASE ............. this applet shows a tree view. When I click a folder in tree view it applies scroll bar instead of expanding. I want to remove this scroll bar an

  • How to display total for a column in updateble report

    How can I display total on a report column? the query is select htmldb_item.checkbox(1,invoice_id) invoice_id, htmldb_item.DISPLAY_AND_SAVE(2,invoice_no,15)invoice_no, htmldb_item.DISPLAY_AND_SAVE(3,to_char(invoice_date, 'DD-MON-YYYY'),20) invoice_da

  • Question about POWL in Travel Management

    Greetings! currently, we are in the process of implementing SAP Travel Management on our DEV System (Request and Expenses) and therefore of designing business processes. One major crucial point is the process of Approving the Travel Request. We are o

  • How to link two fact table in OBIEE

    i experts 1. I have one fact table EXCHANGE_FACT(Contains the exchange rate for each curruncy on each day) . 2. I Have anothe fact Table ACCOUNT_FACT(Contains Amount for each currency on each day). Now i have to link these two table on bace of curren

  • Problem scrolling in events folder

    Hi, instead of on top with the latest image added, the events folder opens always only at the place of the image that happens to be also the current events folder icon. This is annoying as it requires me often to scroll all the way up from the bottom