File Is In Use

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

ChristianW81
User
Posts: 2
Joined: Mon Jan 10, 2011 10:23 am

File Is In Use

Post by ChristianW81 »

Hi,

I write LaTeX Documents and create PDFs from it that are viewed by your great PDF XChange Viewer for Windows (Win7). However, your Viewer opens PDF files in a Deny Write Mode so that a second LaTeX Compilation Fails (mainly in TeXnicCenter and interpreter) because the PDF file is opened in PDF-XChange Viewer. I just forget it or I am too lazy to find the appropriate pdf file tab (lots of tabs) and close it. Therefore, is there an automatic way to do so?

As a solution I suggest, at least for Windows Vista and newer, you could implement the official Microsoft interface IFileIsInUse in the Viewer. On the MSDN link there is also an instruction on how to this. In this way, Windows Explorer and other Apps that supports this interface can show the additional possibilites "Switch to Windows" and "Close file" (both implemented by your app). In this way, the LaTeX Compilation can call the method "CloseFile" to close the file before it starts the compilation.
Because these methods are implemented by you (COM out of process), you can also show a "Save File" dialog before closing or even deny closing it (cancel).

Regards
Christian
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: File Is In Use

Post by Stefan - PDF-XChange »

Hello Christian,

And thank you for the suggestion.
We are considering some options for ver3 of the Viewer, but even now you can write a script that is closing the file in our Viewer, before applying the changes you have done with LaTeX.

Have a look at this topic.

Best,
Stefan
ChristianW81
User
Posts: 2
Joined: Mon Jan 10, 2011 10:23 am

Re: File Is In Use

Post by ChristianW81 »

Hi,

thanks for your reply.
I hope this solution gets integrated into the new version since it is a great way to overcome the access denied problem in Windows (>=Vista).

And thanks for your suggestion.
Your solution is fine so far as it solves the problem at the moment (at least for me).

Regards
Christian
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: File Is In Use

Post by John - Tracker Supp »

Thanks Christian - will endeavour to do so in the next major release if possible.

Thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Roadrunner_DE
User
Posts: 1
Joined: Fri Jun 24, 2011 9:54 am

Re: File Is In Use

Post by Roadrunner_DE »

Sorry I have to say this, but your great programm is quite useless for me because of this. And btw. Foxit Reader has been doing this, auto-updating with latex, for years...
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: File Is In Use

Post by Stefan - PDF-XChange »

Hello Roadrunner,

We can understand that this could be quite a frustration for LaTeX users, but we are doing all our best, and as John mentioned above - we will consider a read only mode for ver3 of the Viewer. Additionally if you follow the link in my post above, you could find some simple scripts which could make our Viewer useful by closing the files before saving changes made in LaTeX and then reopening it in our Viewer.

Best,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: File Is In Use

Post by Vasyl - PDF-XChange »

Hi, Christian.

Currently you may open document in non-blocked mode by next command line:

PDFXCview.exe /A "nolock=yes=OpenParameters" "c:\test.pdf"

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.