Hi,
I have Downloaded the trial developer Version 3 PDF Convertor. When i try to convert a .Rtf to .pdf Following Error is thrown
Printer not activated -20
While Installing There were 2 options
1). Developer Version
2). Professional Version(Checked and grayed)
The Error Is thrown when Developer Version Option Is Checked.
Code(Delphi 7)
msWordAppln : TwordApplication;
msWordAppln.ActivePrinter := 'Amyuni Pdf Convertor';
msWordAppln.Documents.Open(aFileName , EmptyParam, EmptyParam,
EmptyParam, EmptyParam, EmptyParam,
EmptyParam, EmptyParam, EmptyParam, EmptyParam);
Error Raised For the Below line
msWordAppln.PrintOut(aEmptyParam, aEmptyParam, aEmptyParam,
aOutFileName, aEmptyParam, aEmptyParam, aEmptyParam,
aEmptyParam,
aEmptyParam, aEmptyParam,
EmptyParam, aEmptyParam);
Thanks In advance
Vinayaka C
Printer not activated -20
Hello,
You need to add a call to EnablePrinter(Licensee, ActivationCode) right before your PrintOut command.
You will get the Licensee name and ActivationCode values from a folder called Install.ini deployed in the same folder where the files and dlls of the PDF Converter were installed. By default this folder is called "Amyuni PDF Converter" or "Amyuni PDF Suite" and it is create under C:\ProgramFiles.
Hope this helps.
You need to add a call to EnablePrinter(Licensee, ActivationCode) right before your PrintOut command.
You will get the Licensee name and ActivationCode values from a folder called Install.ini deployed in the same folder where the files and dlls of the PDF Converter were installed. By default this folder is called "Amyuni PDF Converter" or "Amyuni PDF Suite" and it is create under C:\ProgramFiles.
Hope this helps.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
-
- Posts: 3
- Joined: Thu Mar 20 2008
Re - Printer Not Activated -20
Dear Joan,
Thanks for the help. May i know how can i get enableprinter() call?
Thanks and regards,
Vinayaka C
Thanks for the help. May i know how can i get enableprinter() call?
Thanks and regards,
Vinayaka C
Hello,
I didn't really get your question.
EnablePrinter is a function of CDIntf. For more information please check the developers manual "Common Driver Interface 300.pdf"
If you mean how to get the parameters needed for EnablePrinter(),licensee name and activation code, then you need to check a file called Install.ini that gets created in the folder where the dlls of the PDF Converter were deployed. By default this is under C:\ProgramFiles\Ammyuni PDF Converter
I didn't really get your question.
EnablePrinter is a function of CDIntf. For more information please check the developers manual "Common Driver Interface 300.pdf"
If you mean how to get the parameters needed for EnablePrinter(),licensee name and activation code, then you need to check a file called Install.ini that gets created in the folder where the dlls of the PDF Converter were deployed. By default this is under C:\ProgramFiles\Ammyuni PDF Converter
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
-
- Posts: 3
- Joined: Thu Mar 20 2008
One More Clarification
I have one more question:
My Appplication is in : Delphi 7
The code I have written looks like this :
msWordAppln : TwordApplication;
msWordAppln.ActivePrinter := 'Amyuni Pdf Convertor';
Details of how I have installed the Trial version (downloaded from your site) and used it in code :
1) The pdf convertor trial version during installation shows the following 2 check boxes :
a). Developer Version
b). Professional Version(Checked and grayed)
2) While installing the above pdf converter I did NOT check Developer Version Option. The Professional Version check box, I left as it is
with the default value (Checked and grayed)
3) Also in the code, as shown above, I have just assigned the 'Amyuni Pdf Convertor' to the word application Object' Active Printer' Property.
I have NOT called any other methods (like 'EnablePrinter', etc., )
4) the pdf file generation happens correctly
My Question :
- Does this mean that the pdf converter trial version which I have installed and used in my application is 'End-user Version' ?
Please reply and thanks in advance.
Regards,
Vinayaka C
My Appplication is in : Delphi 7
The code I have written looks like this :
msWordAppln : TwordApplication;
msWordAppln.ActivePrinter := 'Amyuni Pdf Convertor';
Details of how I have installed the Trial version (downloaded from your site) and used it in code :
1) The pdf convertor trial version during installation shows the following 2 check boxes :
a). Developer Version
b). Professional Version(Checked and grayed)
2) While installing the above pdf converter I did NOT check Developer Version Option. The Professional Version check box, I left as it is
with the default value (Checked and grayed)
3) Also in the code, as shown above, I have just assigned the 'Amyuni Pdf Convertor' to the word application Object' Active Printer' Property.
I have NOT called any other methods (like 'EnablePrinter', etc., )
4) the pdf file generation happens correctly
My Question :
- Does this mean that the pdf converter trial version which I have installed and used in my application is 'End-user Version' ?
Please reply and thanks in advance.
Regards,
Vinayaka C
Yes, the PDF Converter you installed is end user.
If you want to use the Developer version you need to call EnablePrinter in your code before each print command and after your call to DriverInit.
Hope this helps.
If you want to use the Developer version you need to call EnablePrinter in your code before each print command and after your call to DriverInit.
Hope this helps.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark