Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Release a file from web control so it can be deleted

Release a file from web control so it can be deleted

Scheduled Pinned Locked Moved Visual Basic
questionannouncement
5 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve van Niman
    wrote on last edited by
    #1

    I have a small application and use iText to modify a .pdf. I then use the web control to display the pdf in the form for the user. If the user makes modifications to the paramaters used to generate the document, The application generates a new file, then displays the new file, then attempts to delete the old file; however, I receive a message that the file is still being used by another process. How can I release or dispose of this file, so it may be deleted? Thanks, Steve

    D 1 Reply Last reply
    0
    • S Steve van Niman

      I have a small application and use iText to modify a .pdf. I then use the web control to display the pdf in the form for the user. If the user makes modifications to the paramaters used to generate the document, The application generates a new file, then displays the new file, then attempts to delete the old file; however, I receive a message that the file is still being used by another process. How can I release or dispose of this file, so it may be deleted? Thanks, Steve

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      What control are you using to show the .PDF file?? You're best source of information liek that would be the people who wrote the control you're using.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        What control are you using to show the .PDF file?? You're best source of information liek that would be the people who wrote the control you're using.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        S Offline
        S Offline
        Steve van Niman
        wrote on last edited by
        #3

        It's the WebBrowser on the Tool bar in Visual Studio. I would assume it is Microsoft that is distributing the object, but I don't know.

        D 1 Reply Last reply
        0
        • S Steve van Niman

          It's the WebBrowser on the Tool bar in Visual Studio. I would assume it is Microsoft that is distributing the object, but I don't know.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          The webbrowser is not showing the PDF. A control registered with Internet Explorer is doing it. The webbrowser control is nothing more than a stripped down version of IE.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          S 1 Reply Last reply
          0
          • D Dave Kreskowiak

            The webbrowser is not showing the PDF. A control registered with Internet Explorer is doing it. The webbrowser control is nothing more than a stripped down version of IE.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            S Offline
            S Offline
            Steve van Niman
            wrote on last edited by
            #5

            Then I would say it is the Adobe Reader plug-in, as the tool bars present in the frame are the Adobe tools.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups