Another StartDoc error

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
lovison@algolsh.it
Posts: 30
Joined: Fri Apr 04 2003

Another StartDoc error

Post by lovison@algolsh.it »

Hi,
I resolved my previous error with Samba File Server with copy to C: the source file and so I generate correctly the pdf.

But now, I have another customer with this configuration :

- PCs with Windows 98 and 2000 with IE6.0SP1
- Amyuni PDF Converter 2.10e
- Others PDF generator : 5D PDF and Apple PDF Writer
- Source file on C: local disk
- LPT1 connect to Share Printer Queue

On every PC I have StartDoc error with this code (return FALSE):

Code: Select all


   ...... PDFDriverInit & DriverInit & EnablePrinter .....
   ...... Setting of hDevMode with OpenPrinter & GetPrinter .....

   HDC hDevice = CreateDC("Amyuni Document Converter 2.10","MyPrinter","LPT1:",&hDevMode);
   if (hDevice == NULL)
      return FALSE;

   DOCINFO hDocInfo;

   ZeroMemory(&hDocInfo,sizeof(DOCINFO));
   hDocInfo.cbSize      = sizeof(hDocInfo);
   hDocInfo.lpszDocName = szBuffer;
  
   EnablePrinter(hPDFPrinter,"MyCompany","MyCode");
   return (StartDoc(m_hDevice,&hDocInfo) > 0);

I have many customers with your PDF Converter with the same code but (fortunately!) without this errors....
Any suggestion?!?
Thanks

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

Post by Joan »

Hello,

If you posted your previous error as a thread in the forum, than please post the solution to that same thread so users searching the forum and facing your same problem will try your solution.

Concerning your new question, as i understand from your message you are installing the printer at the beginning of your application by calling PDFDriverInit, than you are calling DriverInit to prevent the printer from being removed from the system. Please check that on every PC where StartDoc return false the user is logged to the PC as Administartor and not as a user.

Users will not be able to run PDFDriverInit to install a printer.

Also i noticed that you are calling EnablePrinter without any parameters, I am not sure if you are removing the parameters here because you are posting your code to the forum, EnablePrinter takes two parameters the LicenseTo and ActivationCode information you received with version 2.10

Hope this helps, if not please send your below request to support@amyuni.com so we can try to reproduce this issue here.

Have a nice day.
Post Reply