Click here to Skip to main content
15,885,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

please consider the below scenario.i have folder in local disk which contain pdf files.i want to overwrite a pdf in that folder using vb.net code.can anyone have any solution?

Actually with in the folder i have more than 1 pdf files..when i load one pdf(For eg.,file.pdf) in browser control,the copy of the same pdf(which is renamed as file_copy.pdf) will be loaded in foxit reader for editing.now my problem was,after editing the file_copy.pdf it need to be overwrite in the original(ie,file.pdf). deleting the original and renaming the copy is not possible.because the original pdf is in progress how is it possible?

thanks in advance..
Posted

You're asking about specific functioanlity of a 3rd party library. That best source of information on that library is going to be the manufacturer of it.

Ask your question here[^]. There's a Forum link in the left-side navigation pane.
 
Share this answer
 
1) If a file is still in use, then you need to ensure that all handles to it are fully closed. (ie. Make sure that your foxit reader no longer has the file open.)
2) Once no more handles are open you can freely remove and rename the files as you need to, provided you have sufficient privileges on the user account.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900