Printer Not Activated error -30
-
- Posts: 4
- Joined: Mon Apr 09 2007
Printer Not Activated error -30
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!!!
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?
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?
-
- Posts: 4
- Joined: Mon Apr 09 2007
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.
-
- Posts: 4
- Joined: Mon Apr 09 2007
-
- Posts: 4
- Joined: Mon Apr 09 2007
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
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