Using PDF converter 2.10 on Windows XP, I think we are occasionally getting an error from StartDoc. Trying the same operation again, a few seconds later in the same program, then succeeds.
1) Has anyone observed this?
2) It is unknown whether this occurs only once (on first PDF document after installing the converter) or also at other times. One of my theories is that the converter is taking a little too long to load, and something in the system is timing out. Is the problem due to a timeout? How can I verify it? Is there a workaround?
-- Phil Davidson, pdavidson@riverdeep.net
Failure (due to timeout?) on first PDF conversion only
-
- Posts: 4
- Joined: Fri Feb 07 2003
- Location: Novato, CA, USA
Hello,
I can not give you a very accurate reply because I didn't try this but installing a printer under XP will take a little bit more time than installing the same printer under older OS. So this small time difference may be causing the error generated from StartDoc the first time.
A workaround for this is to install the printer on the system using install.exe and keep it there, so it will not be installed each time you load your application. To apply this workaround please replace PDFDriverInit in your application by DriverInit.
Also I advise you to download our latest version 2.10c of the PDF Converter, if you wish to download this update please contact support@amyuni.com
Hope this helps.
I can not give you a very accurate reply because I didn't try this but installing a printer under XP will take a little bit more time than installing the same printer under older OS. So this small time difference may be causing the error generated from StartDoc the first time.
A workaround for this is to install the printer on the system using install.exe and keep it there, so it will not be installed each time you load your application. To apply this workaround please replace PDFDriverInit in your application by DriverInit.
Also I advise you to download our latest version 2.10c of the PDF Converter, if you wish to download this update please contact support@amyuni.com
Hope this helps.
-
- Posts: 4
- Joined: Fri Feb 07 2003
- Location: Novato, CA, USA
Hello,
This is why I asked you to use DriverInit. Installing the printer under XP will take a little bit more time than under other operating systems, whether this istallation is done by calling PDFDriverInit or by running Install.exe.
So, to overcome this issue, please install the PDF Printer once on your system by running Install.exe when or after installing your application. In this way the printer will stay permanently on the system and you will not face this timing problem.
Thanks.
This is why I asked you to use DriverInit. Installing the printer under XP will take a little bit more time than under other operating systems, whether this istallation is done by calling PDFDriverInit or by running Install.exe.
So, to overcome this issue, please install the PDF Printer once on your system by running Install.exe when or after installing your application. In this way the printer will stay permanently on the system and you will not face this timing problem.
Thanks.
-
- Posts: 4
- Joined: Fri Feb 07 2003
- Location: Novato, CA, USA
Phil,
I ran across a problem with similar symptoms to yours and although the cause may be unrelated, here is how I solved it.
We call “SetFileNameOptions†with “BroadcastMessages†flag in order to intercept PDFPrinter related windows messages.
During output, when “DOCUMENTEVENT_ENABLEDPRE†windows message is intercepted, we call 'EnablePrinter' to enable the device.
On several occasions I observed that that the 1st document failed to print (subsequent documents printed correctly).
The problem was resolved calling 'Enable Printer' before starting the print job.
I hope this helps,
Robert
I ran across a problem with similar symptoms to yours and although the cause may be unrelated, here is how I solved it.
We call “SetFileNameOptions†with “BroadcastMessages†flag in order to intercept PDFPrinter related windows messages.
During output, when “DOCUMENTEVENT_ENABLEDPRE†windows message is intercepted, we call 'EnablePrinter' to enable the device.
On several occasions I observed that that the 1st document failed to print (subsequent documents printed correctly).
The problem was resolved calling 'Enable Printer' before starting the print job.
I hope this helps,
Robert