I was using a demo version of PDF Converter 2.1 and it was working well.
I enter my registration code to upgrade my pdf Converter to a develope version 2.1. I change the dll Cdintf.dll with cdintf201.dll and I had in my code, right after th PDFDriverInit finction and before any other pdf converter methode call : unablePrinter (“nam_of_my_companyâ€, “activation_codeâ€);
Here is a part of my sourc code (in c#):
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
HttpApplicationState application
Cdintf210.CDIntfEx pdf=new cdintf210.CDIntfEx();
pdf.DriverInit( "Amyuni PDF Converter" );
pdf.EnablePrinter( "name of my company", “my registration codeâ€);
pdf.SetDefaultPrinter();
application.Lock();
application["FileName"] = “name of the output pdf fileâ€;
path = “path where the pdf file will be putâ€
pdf.DefaultFileName = path + “name of the output pdf file†+ ".pdf";
pdf.FileNameOptions = 1 + 2 ;
/////// call of an activeX that creates and prints the document
ActiveXForEdition.EditE51 oEdition = new ActiveXForEdition.EditE51 ();
bool bOk = oEdition.editE51Societe( societe, annee, mois ); (calla of the method of the activeX)
//////
pdf.FileNameOptions = 0 ;
application.UnLock();
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
It compiles well, I have no error of compilation.
My application is running with administrator privileges.
Inspite of all of this, it doesn’t work at all and I don’t know why??
So I deceided to test the pdf converter alone not inside a code, just by printing a document whit this virtual printer and I got the following error : “StartDocPrinter was not issuedâ€.
I think something is wrong with the setup of the pdf converter but I don’t know what..
Do you have any solution for my problem?
Printing error with version 2.1 of the PDF Converter
Hello,
You are right, you need to make some changes to your code.
Also please note that we released version 2.50 of the PDF Converter, if you recently licensed your product, you can freely download an upgrade to the latest release.
You can find a full sample on using the locking mechanism on page 118 of our Developer manual of version 2.50 "Common Driver Interface 250.pdf". Or please search for "CDintfEx.Lock" in "Common Driver Interface 2.10.pdf" to locate the sample.
Hope this helps.
You are right, you need to make some changes to your code.
Also please note that we released version 2.50 of the PDF Converter, if you recently licensed your product, you can freely download an upgrade to the latest release.
You can find a full sample on using the locking mechanism on page 118 of our Developer manual of version 2.50 "Common Driver Interface 250.pdf". Or please search for "CDintfEx.Lock" in "Common Driver Interface 2.10.pdf" to locate the sample.
Hope this helps.
thanks for your reply Joan.
Actually I wrote to the technical support and they explained me that after calling the enablePrinter() functing, we have 20 second to print our document on the pdf printer. After this time the pdf printer fall in time out ant the printing failled.
Do you know if it's possible to increase the timeout?
Thanks
coralie
Actually I wrote to the technical support and they explained me that after calling the enablePrinter() functing, we have 20 second to print our document on the pdf printer. After this time the pdf printer fall in time out ant the printing failled.
Do you know if it's possible to increase the timeout?
Thanks
coralie
Hello,
The default timeout is 20 seconds and in general we do not increase it, but if you have a special reason why you need a longer timeout you can send a request to our support department and it will be checked.
You can catch the events generated by the driver and call EnablePrinter when catching the EnablePre event or call it just before your Print() command, in this way the 20 seconds timeout are enought.
Have a nice weekend.
The default timeout is 20 seconds and in general we do not increase it, but if you have a special reason why you need a longer timeout you can send a request to our support department and it will be checked.
You can catch the events generated by the driver and call EnablePrinter when catching the EnablePre event or call it just before your Print() command, in this way the 20 seconds timeout are enought.
Have a nice weekend.
Hello,
I have a similar problem, we use Navision and print a Report with the amyuni PDF developer Edition, in most cases it works fine but sometimes in situations of Stress or Locks in the Database (or selfmade sleeps in the source code) the Documents are simply not printed.
We call the EnablePrinter function as late as we could and out of Navision we cant use the Amyuni Events this is a big Problem for one of our customers who uses Amyuni PDF Converter to print his Orders.
Hope there is any possibility to increase the 20 seconds Timeout
Best Regards
Stephan
I have a similar problem, we use Navision and print a Report with the amyuni PDF developer Edition, in most cases it works fine but sometimes in situations of Stress or Locks in the Database (or selfmade sleeps in the source code) the Documents are simply not printed.
We call the EnablePrinter function as late as we could and out of Navision we cant use the Amyuni Events this is a big Problem for one of our customers who uses Amyuni PDF Converter to print his Orders.
Hope there is any possibility to increase the 20 seconds Timeout
Best Regards
Stephan
Hello Stephan,
Please contact support@amyuni.com for this request. Our engineers will try to help you with this.
We can't decide about increasing the timeout or even sending you a special activation code with longer time out in the forum
.
Have a nice day!
Please contact support@amyuni.com for this request. Our engineers will try to help you with this.
We can't decide about increasing the timeout or even sending you a special activation code with longer time out in the forum

Have a nice day!
Printing error with version 2.1 of the PDF Converter
Our company also has the same problem whereas we cannot generate the SQL Queries to build our reports before calling the Printer Initialisation command, and therefore larger reports on slower machines timeout.
I have just sent an email to Amyuni Support requesting options to increase the timeout (configurable in the printer preferences and programmatically configurable) with a willingness to contribute $$$ to see this happen. (or else hoping they tell me it's already possible in 2.5)
Looking forward to a response. Just thought I'd join the bandwagon of people desiring this enhancement.
Kind regards,
Brad

I have just sent an email to Amyuni Support requesting options to increase the timeout (configurable in the printer preferences and programmatically configurable) with a willingness to contribute $$$ to see this happen. (or else hoping they tell me it's already possible in 2.5)
Looking forward to a response. Just thought I'd join the bandwagon of people desiring this enhancement.

Kind regards,
Brad