I recently purchased the PDF Converter 2.1h, and I am developing an application that needs to lock the printer driver while printing (using the lock() method in cdintf210.dll).
I have discovered that the lock() method appears not to work on Windows 2000 server, but while testing this found that the lock() method works as expected on Win XP Pro.
If I want to lock the printer driver as described above on Windows 2000 Server, do I need to do anything special, for example do I need to get another version?
Thanks in advance,
Don
PDF Converter 2.10h fails to lock
We finally ran this issue down and found the following:
We were running Amyuni 1.59 and 2.10h on the same computer, one version was for some legacy software, the other was for the new stuff. The Amyuni 1.59 driver set the following key in NT:
HKEY_USERS \.DEFAULT\Software\Microsoft\Windows NT\Current Version\Windows
This key sets the default printer for the SYSTEM account, which the Amyuni 2.10h driver will pick up if you don't programmatically set the default printer in your code before trying to print anything.
So the moral of this story is to be sure to call the SetDefaultPrinter function in your code, even if you think the 2.10 driver is already the default or there is only one printer on your server, because the driver will check the value of this key and print to that printer (or not at all) unless you do.
For more information on setting the default printer for the windows SYSTEM account, please read the following Microsoft Knowledge Base article:
http://support.microsoft.com/default.as ... s%3B152451
Good luck, and safe coding!
Don Clayton
Intertech Consulting, inc.
We were running Amyuni 1.59 and 2.10h on the same computer, one version was for some legacy software, the other was for the new stuff. The Amyuni 1.59 driver set the following key in NT:
HKEY_USERS \.DEFAULT\Software\Microsoft\Windows NT\Current Version\Windows
This key sets the default printer for the SYSTEM account, which the Amyuni 2.10h driver will pick up if you don't programmatically set the default printer in your code before trying to print anything.
So the moral of this story is to be sure to call the SetDefaultPrinter function in your code, even if you think the 2.10 driver is already the default or there is only one printer on your server, because the driver will check the value of this key and print to that printer (or not at all) unless you do.
For more information on setting the default printer for the windows SYSTEM account, please read the following Microsoft Knowledge Base article:
http://support.microsoft.com/default.as ... s%3B152451
Good luck, and safe coding!
Don Clayton
Intertech Consulting, inc.