Windows Vista Printer not activated, error -30

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
JosepM
Posts: 4
Joined: Fri Mar 16 2007

Windows Vista Printer not activated, error -30

Post by JosepM »

Hello

In a Vista Windows with activated UAC the following thing takes place:

The creation of driver of Amyuni impression v2.50c is made correctly through our program described with a Windows Vista Manifest.

When we are making the impression through driver Amyuni the error "Printer not activated. Error code -30" is launched.


We have verified that the error is launched before the printer activates in the EnablePre event of our program, that manage the developer license.

This scenario works correctly when Windows Vista UAC is disabled, but we can't obligate our customers to disable that Windows feature.

How can we avoid this error?


Thanks

JosepM
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

The message you are mentioning is generated usually by the PDF Converter. Your post however is under PDF Creator. Which product are you using?

When are you getting the 'Printer not activated' message? at which line of code or function call in your code?
JosepM
Posts: 4
Joined: Fri Mar 16 2007

Post by JosepM »

Hello,

We are currently using PDF Converter. This is used when we try to print though this Amyuni driver.

The scenario follows this steps:

1 . Print a report though this Amyuni driver.
2 . The error "Printer not activated, error -30" is raised.
3 . When it works ok, the event EnablePre is fired to activate the developer license. Here is our problem. We can't catch this event.
4 . When it works ok, the report is printed.

thanks
JosepM
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

If you run your application 'as Administrator', will you still get this message?
JosepM
Posts: 4
Joined: Fri Mar 16 2007

Post by JosepM »

Hello,

No, if we run our application 'as Administrator', this error is not raised.

However, this issue does not occur only with our application. If we try to print with the Notepad.exe though the Amyuni driver created by our application, it also fails!

To avoid this, we must execute Notepad.exe 'as Administrator', although we think that is not the best solution.


Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello Joseph,

When UAC is turned on, every action needs explicit confirmation. (Accessing the registry, installing a printer,...)

What could be happening is that when the application is trying to enter the activation code in the registry, the confirmation message box is raised in the background and the 'ok' button of this messge box is never checked.

If this is the case, then please note that this is something we are checking to see what is the best way to deal with the new UAC option.

I didn't get point 3 in your above scenario, also i am not sure if you are logging to Vista as User or as Administrator.
JosepM
Posts: 4
Joined: Fri Mar 16 2007

Post by JosepM »

Hello Joan

In the point 3 of our scenario, we are logged in 'as Administrator' when it goes ok. Only when we are logged in as 'standar user', the activation fails.


Related to the confirmation message on the background, none message is shown in our case, so we have no possibility to click the ok button.

Please, can you confirm if your PDF Converter need administrator privileges to run correcly? All test we had run, points to this direction.

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

The PDF Converter needs to have access rights to the registry, specially the Hkey-Current-Config key. Under Vista when you are logged in as a User with UAC enabled you will be asked for administrator credentials when trying to do any task that requires administrative rights.

This is why the activation code is not written properly to the registry when you are logged in as User. I will check this issue furthermore and post any additional information i might find.
Mattis Ovesen
Posts: 1
Joined: Mon Jun 11 2007

Post by Mattis Ovesen »

I am experiencing the exact same problem. And the reason is exactly the same. (The ENABLEPRE event is not fired when the user is not admin).

Are there any news on this issue?

Thanks,
Mattis
David
Amyuni Team
Posts: 89
Joined: Mon Dec 18 2006

Post by David »

In order to be able to install correctly you will need version 2.50g-4 of the PDF Converter. The version that you have (2.50c) is not compatible with Windows Vista and we cannot guarantee that it will work on Vista.

In Windows Vista, the PDF Converter's EnablePre event fires when the user is logged in as either an Administrator or Non-Admin. It will also fire with UAC turned on or off.

To have the event fire you will need to make sure that this option is enabled in your application e.g.

'Enable capturing of events
pdfEvent.CaptureEvents (1)

We would recommend upgrading from the version that you currently have to one that is compatible with Vista.
Post Reply