Timeout when sending print to PDFConverter

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
Benny
Posts: 9
Joined: Fri Oct 15 2004

Timeout when sending print to PDFConverter

Post by Benny »

Hi,

I'm using PDF Converter 2.50d-3 for programmatically converting files to PDF.
I'm enabling the printer in the OnEnabledPre event.

What happens is this:

From program A I create an instance of the PDF ActiveX and set the needed properties on the PDF converter.
Next I call program B, which prints several times to the PDF converter. The first time it triggers the OnEnabledPre event and program A enables the printer.
The printing goes fine in approx. 30 secs. and then I get the error 'Printer not activated, error code -30'. Any printing done until this point are appended to my outputfile as it should, but of course not the last ones.

The OnEnabledPre event is only fired once, so im not able to reenable the printer.

How can I force the printer not deactivating or timing out while printing to it?

Kind regards, Benny
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Are you catching ONEnablePre from both programs A and B?

It seems like you are in multi threading enviromnemt, if this is the case i suggest that you use the locking mechanism of CDIntf.

Joanna
Post Reply