[Webinar] Learn how to a build a cloud-first strategyRegister Now


Updating PDF file which is opened

Posted on 2006-04-24
Medium Priority
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

Expert Comment

by:Leo Eikelman
ID: 16527424
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

LordWabbit earned 2000 total points
ID: 16527574
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

810 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