Groups > dBase > dBase programming > Re: using pdf995




using pdf995

using pdf995
Thu, 10 Apr 2008 17:14:46 -040
I am having trouble using the printPDF.exe utility. 

I have the following lines of code in my pdf995.ini

PrintPDFAcrobatShutdown=1

PrintPdfAcrobatShutdownAfterNSeconds=600

If I use the following command line:

printPDF.exe c:\pdf\amy.pdf

Acrobat Reader 8.0 opens, amy.pdf prints to the default printer, but acrobat
reader NEVER closes 

If I use the following command line:

 

printPDF.exe “c:\pdf\amy.pdf”  “WINSPOOL, \\nycgt03\HP LaserJet 3390 Series PCL
6”

The reader opens with amy.pdf but NEVER prints and NEVER closes.

With
printPDF.exe “c:\pdf\amy.pdf”  “\\nycgt03\HP LaserJet 3390 Series PCL 6”

printPDF.exe “c:\pdf\amy.pdf”  “\\nycgt03\HP LaserJet 3390 Series PCL 6”

does print amy.pdf, but Acrobat Reader never closes automatically so I can not
print another pdf until I close the reader. I need the reader to close
automatically.

I need amy.pdf to print and for the reader to automatically close.

What am I doing  wrong.  

Thanks for your help

Post Reply
Re: using pdf995
Fri, 11 Apr 2008 10:50:07 -070
"Ira Berkowitz" <iranyc@verizon.net> wrote in message 
news:4JoAn$0mIHA.1536@news-server...
>I am having trouble using the printPDF.exe utility.
>
> I have the following lines of code in my pdf995.ini
>
> PrintPDFAcrobatShutdown=1
>
> PrintPdfAcrobatShutdownAfterNSeconds=600
>
> If I use the following command line:
>
> printPDF.exe c:\pdf\amy.pdf
>
> Acrobat Reader 8.0 opens, amy.pdf prints to the default printer, but 
> acrobat reader NEVER closes
>
> If I use the following command line:
>
>
>
> printPDF.exe "c:\pdf\amy.pdf"  "WINSPOOL, \\nycgt03\HP
LaserJet 3390 
> Series PCL 6"
>
> The reader opens with amy.pdf but NEVER prints and NEVER closes.
>
> With
> printPDF.exe "c:\pdf\amy.pdf"  "\\nycgt03\HP LaserJet 3390
Series PCL 6"
>
> printPDF.exe "c:\pdf\amy.pdf"  "\\nycgt03\HP LaserJet 3390
Series PCL 6"
>
> does print amy.pdf, but Acrobat Reader never closes automatically so I can

> not print another pdf until I close the reader. I need the reader to close

> automatically.
>
> I need amy.pdf to print and for the reader to automatically close.
>
> What am I doing  wrong.

You might look in the documentation and see if there are any switches that 
would do the trick.  Example:

 printPDF.exe /q "c:\pdf\amy.pdf"  "\\nycgt03\HP LaserJet 3390
Series PCL 6"
There is a way to force it closed.  You will have to know the titlebar name.

If you need to force it closed you will have to download appmgr32.prg from 
the binaries folder and you would run it as follows:

set proce to appmgr32.prg addi
if showapp("adobe acrobat") > 0
   terminateapp("adobe acrobat")
endif


HTH,
Greg Hill


Greg Hill

Post Reply
Re: using pdf995
Tue, 15 Apr 2008 10:32:25 -070
"Ira Berkowitz" <iranyc@verizon.net> wrote in message 
news:gdvIeXxnIHA.940@news-server...
> Hi Greg
>
> I tried the appMagr32 and unfortunately it doesn't work with seem to work 
> with Adobe Reader 8.1 (acroreader error message). I'm going to uninstall 
> versiion 8.1 and reinstall v. 8.0 to see if the problems lies in the 
> recent reader update.

There are some grey areas from my point of view but let me explain.
If you app is running and it throws an error and then you try to close that 
error dialog, it will not work for sure.  OTOH, if you terminate the app 
itself it should work.

That still leaves an untested piece of the puzzle, the question is will it 
really terminate the app if the app has a readmodal dialog on screen?

Termiateapp works for any app, it is not specific to the app.  You have to 
be sure to send it the text from the titblebar.


Greg Hill

Post Reply
Re: using pdf995
Tue, 15 Apr 2008 12:29:25 -040
Hi Greg 

I tried the appMagr32 and unfortunately it doesn't work with seem to work with
Adobe Reader 8.1 (acroreader error message). I'm going to uninstall versiion 8.1
and reinstall v. 8.0 to see if the problems lies in the recent reader update.

Greg Hill Wrote:

> "Ira Berkowitz" <iranyc@verizon.net> wrote in message 
> news:4JoAn$0mIHA.1536@news-server...
> >I am having trouble using the printPDF.exe utility.
> >
> > I have the following lines of code in my pdf995.ini
> >
> > PrintPDFAcrobatShutdown=1
> >
> > PrintPdfAcrobatShutdownAfterNSeconds=600
> >
> > If I use the following command line:
> >
> > printPDF.exe c:\pdf\amy.pdf
> >
> > Acrobat Reader 8.0 opens, amy.pdf prints to the default printer, but 
> > acrobat reader NEVER closes
> >
> > If I use the following command line:
> >
> >
> >
> > printPDF.exe "c:\pdf\amy.pdf"  "WINSPOOL, \\nycgt03\HP
LaserJet 3390 
> > Series PCL 6"
> >
> > The reader opens with amy.pdf but NEVER prints and NEVER closes.
> >
> > With
> > printPDF.exe "c:\pdf\amy.pdf"  "\\nycgt03\HP LaserJet
3390 Series PCL 6"
> >
> > printPDF.exe "c:\pdf\amy.pdf"  "\\nycgt03\HP LaserJet
3390 Series PCL 6"
> >
> > does print amy.pdf, but Acrobat Reader never closes automatically so I
can 
> > not print another pdf until I close the reader. I need the reader to
close 
> > automatically.
> >
> > I need amy.pdf to print and for the reader to automatically close.
> >
> > What am I doing  wrong.
> 
> You might look in the documentation and see if there are any switches that

> would do the trick.  Example:
> 
>  printPDF.exe /q "c:\pdf\amy.pdf"  "\\nycgt03\HP LaserJet
3390 Series PCL 6"
> There is a way to force it closed.  You will have to know the titlebar
name.
> 
> If you need to force it closed you will have to download appmgr32.prg from

> the binaries folder and you would run it as follows:
> 
> set proce to appmgr32.prg addi
> if showapp("adobe acrobat") > 0
>    terminateapp("adobe acrobat")
> endif
> 
> 
> HTH,
> Greg Hill
> 
> 
> Greg Hill
> 
> 
Post Reply
Re: using pdf995
Tue, 15 Apr 2008 18:25:03 -070
In my previous post, I specify "your app", what I meant is
"Adobe", if adobe 
has thrown an error, can the terminateApp() function kill it?  This will 
require you to test and find out.  Keep in mind to kill the parent app, not 
the error dialog.

Hopefully this makes sense.

Greg Hill

"Greg Hill" <ghill123@hotmail.com> wrote in message 
news:zsrd8FynIHA.1640@news-server...
> "Ira Berkowitz" <iranyc@verizon.net> wrote in message 
> news:gdvIeXxnIHA.940@news-server...
>> Hi Greg
>>
>> I tried the appMagr32 and unfortunately it doesn't work with seem to
work 
>> with Adobe Reader 8.1 (acroreader error message). I'm going to
uninstall 
>> versiion 8.1 and reinstall v. 8.0 to see if the problems lies in the 
>> recent reader update.
>
> There are some grey areas from my point of view but let me explain.
> If you app is running and it throws an error and then you try to close 
> that error dialog, it will not work for sure.  OTOH, if you terminate the 
> app itself it should work.
>
> That still leaves an untested piece of the puzzle, the question is will it

> really terminate the app if the app has a readmodal dialog on screen?
>
> Termiateapp works for any app, it is not specific to the app.  You have to

> be sure to send it the text from the titblebar.
>
>
> Greg Hill
>
> 

Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact