PDF not created

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
psimonatti
Posts: 2
Joined: Thu Feb 10 2005

PDF not created

Post by psimonatti »

Good afternoon (in Italy),
I am decidicing to buy the suite Amyuni (Converter and Creator) 2.5 in developer license because I have to realize a project of electronic invoicing.
I dowloaded the trial version and I try to make a sample project after to have installed "My Amyuni Printer" with install.exe.
I used the "Licensee" and the "LicCode" that are in the "install.ini" of trial version...but when I try to print a Word document (or another) on "My Amyuni Printer" to get a PDF, the return message is:
"Printer non activated, error code -20". In another my VB-example I got a similar error: "Printer non activated, error code -30"

What are my mistakes? Can I use the trial version in this mode?

Thank you and best regards,

Paolo (from Florence)
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Ciao Paolo,

Please check that you are calling EnablePrinter() right before printing.

Hope this helps.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Ciao Paolo,

Please check that you are calling EnablePrinter() right before printing.

Hope this helps.
psimonatti
Posts: 2
Joined: Thu Feb 10 2005

Post by psimonatti »

Joan,
this is my source code:

cdi.PDFDriverInit ("Test Amyuni")

cdi.EnablePrinter "Suite Evaluation Developer Pro", "07EFCDAB01000100004D402B3A83EE8F395FD15C4CA2E3263A8D53D98E391DB5CCC674EE34D6149B6C3F9C94E116C9E48105E9A1D23B016E0A8D1B0EA74C099D7F7E61917311D6397154A164977BD507168ED24F80CAFD08F6367EBC610B2FC55C42CF60EFC143DD5362361DA276EAE059"

cdi.SetDefaultPrinter
cdi.CaptureEvents True
cdi.FileNameOptionsEx = &H1 + &H2 + &H20
cdi.DefaultFileName = "c:\tempss\testamy.pdf"

When my program with this code is on execution and when I print a Word document, I shoud have a PDF named "testamy.pdf", shouldn't I?

Thank you for your answer.

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

Post by Joan »

Hi,

Please call EnablePrinter right after PDFDriverInit and right before printing.

It is very important to enable the printer right before your call to the Print function.

This should help.
Post Reply