Hello,
i'm just testing the 4.0 version with our program.
Under Vista 32-bit i can only print if i run the app as admin.
ProcessMonitor shows that the want's to write under
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\Software\DATAflor Document Printer
which is not allowed for non-admins.
What to do?
kind regards
Oliver Albrecht
DATAflor AG
Version 4.0.0.2 printing only as admin using Vista 32-bit
Re: Version 4.0.0.2 printing only as admin using Vista 32-bit
Hello
Writing to this location is done by windows when installing the printer driver. Installation of the printer can only be done by a user that has Administrative rights on the system.
One of the fundamental requirements of the PDF Converter is that, in order to install the PDF Converter on all versions of windows, the logged in user must have Admin privileges on the PC. This is the case when using install.exe or PDFDriverInit().
In your case, it seems that you are trying to install the printer while looged as a non-admin user. Doing this will still require that you mark your exe to be run with administrative authority.
In order to resolve your issue you need to permanently install the PDF Converter on the user system and replace the PDFDriverInit() call in your application with the DriverInit() call. The DriverInit() will not install a printer driver but rather will give you access to the printer handle. In this situation your application will not require administrator rights to run.
Hope that helps.
David
Writing to this location is done by windows when installing the printer driver. Installation of the printer can only be done by a user that has Administrative rights on the system.
One of the fundamental requirements of the PDF Converter is that, in order to install the PDF Converter on all versions of windows, the logged in user must have Admin privileges on the PC. This is the case when using install.exe or PDFDriverInit().
In your case, it seems that you are trying to install the printer while looged as a non-admin user. Doing this will still require that you mark your exe to be run with administrative authority.
In order to resolve your issue you need to permanently install the PDF Converter on the user system and replace the PDFDriverInit() call in your application with the DriverInit() call. The DriverInit() will not install a printer driver but rather will give you access to the printer handle. In this situation your application will not require administrator rights to run.
Hope that helps.
David
Amyuni Custom Development
Do you need a specific PDF solution? Are you looking for expertise that will enable you to start or complete a PDF integration project?
http://www.amyuni.com/en/company/services.php
Do you need a specific PDF solution? Are you looking for expertise that will enable you to start or complete a PDF integration project?
http://www.amyuni.com/en/company/services.php
Re: Version 4.0.0.2 printing only as admin using Vista 32-bit
Hello David,
the printer is installed permanently and i call DriverInit().
The only thing that is different compared to prior versions is
that i must use (in Delphi)
using as before gives me an
"interface not supported exception".
kind regards
Oliver Albrecht
the printer is installed permanently and i call DriverInit().
The only thing that is different compared to prior versions is
that i must use (in Delphi)
Code: Select all
CreateOleObject('CDIntfEx.CDIntfEx.4') as ICDIntfEx;
Code: Select all
CreateOleObject('CDIntfEx.CDIntfEx') as ICDIntfEx
"interface not supported exception".
kind regards
Oliver Albrecht