Updating PDF file which is opened

Posted on 2006-04-24
Last Modified: 2010-05-01
We are using VB application to create PDF files(calling Oracle report) and moving into central location,if any user opened a particular PDF file in central location for viewing purpose,At that time I could not move the file for the recent changes.I mean the file is not updating.Can you suggest me the best way so that I could update the PDF file while some user in the network is viewing the pdf file.
Question by:kollu
    LVL 8

    Expert Comment

    by:Leo Eikelman
    wouldn't this be more of a DBA issue?  It sounds like if someone opens the PDF file then it gets locked in the database.  You will have to talk to your DBA to change these constraints, so that when someone opens the PDF file it does not get locked in the database.

    LVL 11

    Accepted Solution

    If the file is in use then you cannot update it, there might be some hacks to kick the users off the system share, but the results can be unpredictable.  Would it be possible to write the file off with a different name (say MyPDFFile_Newer.pfd) which you can then have another program periodically check when the old file has been release and then delete the old one and rename the new one.  In that way your other uses will be aware that there is a newer version of the file available.  Of course if someone opens the new version AND the someone else still has the old version open you are a bit stuck.  Ultimately the best solution would be to force the users to download the file and open it locally, in that case I would go for a simple web site which lists available pdf's and then when the user selects one it would download locally and open in the browser.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now