Printer Not Activated error -30

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
Real Green
Posts: 4
Joined: Mon Apr 09 2007

Printer Not Activated error -30

Post by Real Green »

What occurs is this. the report is sent to the printer and the system just sits. When you open the printer control panel and go to the Amuyni PDF Suite printer it has the job sitting there with an error. You double click on it and it pops the Printer Not Activated Error -30. I have Vista Ultimate 64 bit. UAC is turned off and I am logged in as administrator. I just installed the latest 3.0( The version bug seems to be fixed). The app the report is coming from is written in VFP9. I changed the code to use DriverInit from PDFDriverInit it was using. The version is checked with getversioninformation and the appropriate key is then used for the EnablePrinter command. I have tried all the suggestions I saw in other posts related to this topic. Help!!!
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

error code -30 means as you might know , that the printer has timed out. THis means that the activation code has timed out and you need to call EnablePrinter().

I suggest that you debug your application and check when precisely error code 30 is generated, is is generated when printing the first report?
Real Green
Posts: 4
Joined: Mon Apr 09 2007

Post by Real Green »

Well, enable printer is being called immediately before the report is sent to the printer. Also, this same app worked with the prior version with xp. This just started happening with Vista and the new converter version required to run on 64 bit. I should also say the rest of the app works fine and it prints to other printers.
Real Green
Posts: 4
Joined: Mon Apr 09 2007

Post by Real Green »

An additional piece of info is that it actually does create a 1kb file with the correct name in the correct location that cannot be opened.
Real Green
Posts: 4
Joined: Mon Apr 09 2007

Post by Real Green »

Below youll find a code snippet bronken down to the essentials. It does not appear as though the enable printer is succesful. It returns 0. Yes, when running the correct info is in registered name and the key fields. The documentation speaks of a third parameter, printer handle, for the enable printer function but if I add that the function blows up. Anybody have any thoughts???


CLEAR ALL
RELEASE all
x=CREATEOBJECT('cdintfex.cdintfex')
x.driverinit('Amyuni PDF Suite')
x.EnablePrinter('Our registered name','The key')
x.Resolution = 1200
SET PRINTER TO NAME ('Amyuni PDF Suite')
x.FileNameOptions = 1+2
x.DefaultFileName='c:\test2.pdf'
USE d:\la3\data\account
LIST STRUCTURE TO PRINTER NOCONSOLE
CLEAR ALL
RELEASE all
Post Reply