Re: Writing to a file already open in another application

2002-11-27 Thread Jeremias Maerki
I thought so, yes.

On 27.11.2002 15:29:27 Illiano, Vincent wrote:
> Is Acrobat OLE-Automatable?  My controlling application is an MFC app, so I
> could easily establish an OLE connection to Acrobat if that's possible.


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Writing to a file already open in another application

2002-11-27 Thread Noel Golding
If the pdf is launched in the IE browser, it does not lock the file.


- Original Message -
From: "Jeremias Maerki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 9:25 AM
Subject: Re: Writing to a file already open in another application


> You can't because Acrobat has an exclusive lock on the file. There's no
> way to release that lock other than to tell Acrobat to close the file
> either by closing the window with the mouse or by closing the file over
> OLE automation (not an easy task in Java).
>
> By the way, GhostScript doesn't lock the file when viewing it. It even
> reloads the file automatically when it's regenerated.
>
> On 27.11.2002 15:14:11 Illiano, Vincent wrote:
> > Hi Fellow FOPers,
> >
> > I've run into a problem when generating pdf's with FOP.  When the target
pdf
> > file is already open in Acrobat, or any other application for that
matter,
> > FOP cannot regenerate the pdf file.  I see the following message in the
FOP
> > console window (running fop.bat):
> >
> > java.io.FileNotFoundException:  output\histphys.pdf (The process cannot
> > access the file because it is being used by another process)
> > at java.io.FileOutputStream.open(Native Method)
> > ...
> >
> > Does anybody know of a way to get FOP and Java to rewrite the file even
> > though it's open in another app?  Thanks, -Vincent
>
>
>
> Jeremias Maerki
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Writing to a file already open in another application

2002-11-27 Thread Illiano, Vincent
Is Acrobat OLE-Automatable?  My controlling application is an MFC app, so I
could easily establish an OLE connection to Acrobat if that's possible.
Thank, -Vincent

> --
> From: Jeremias Maerki[SMTP:[EMAIL PROTECTED]
> Reply To: [EMAIL PROTECTED]
> Sent: Wednesday, November 27, 2002 9:25 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Writing to a file already open in another application
> 
> You can't because Acrobat has an exclusive lock on the file. There's no
> way to release that lock other than to tell Acrobat to close the file
> either by closing the window with the mouse or by closing the file over
> OLE automation (not an easy task in Java).
> 
> By the way, GhostScript doesn't lock the file when viewing it. It even
> reloads the file automatically when it's regenerated.
> 
> On 27.11.2002 15:14:11 Illiano, Vincent wrote:
> > Hi Fellow FOPers,
> > 
> > I've run into a problem when generating pdf's with FOP.  When the target
> pdf
> > file is already open in Acrobat, or any other application for that
> matter,
> > FOP cannot regenerate the pdf file.  I see the following message in the
> FOP
> > console window (running fop.bat):
> > 
> > java.io.FileNotFoundException:  output\histphys.pdf (The process cannot
> > access the file because it is being used by another process)
> > at java.io.FileOutputStream.open(Native Method)
> > ...
> > 
> > Does anybody know of a way to get FOP and Java to rewrite the file even
> > though it's open in another app?  Thanks, -Vincent
> 
> 
> 
> Jeremias Maerki
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Writing to a file already open in another application

2002-11-27 Thread Jeremias Maerki
You can't because Acrobat has an exclusive lock on the file. There's no
way to release that lock other than to tell Acrobat to close the file
either by closing the window with the mouse or by closing the file over
OLE automation (not an easy task in Java).

By the way, GhostScript doesn't lock the file when viewing it. It even
reloads the file automatically when it's regenerated.

On 27.11.2002 15:14:11 Illiano, Vincent wrote:
> Hi Fellow FOPers,
> 
> I've run into a problem when generating pdf's with FOP.  When the target pdf
> file is already open in Acrobat, or any other application for that matter,
> FOP cannot regenerate the pdf file.  I see the following message in the FOP
> console window (running fop.bat):
> 
> java.io.FileNotFoundException:  output\histphys.pdf (The process cannot
> access the file because it is being used by another process)
>   at java.io.FileOutputStream.open(Native Method)
> ...
> 
> Does anybody know of a way to get FOP and Java to rewrite the file even
> though it's open in another app?  Thanks, -Vincent



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]