Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to get a CDI dll to work
Message
De
31/12/1999 16:47:46
 
 
À
29/12/1999 05:57:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309328
Message ID:
00311038
Vues:
66
>Hi Terry,
>
>I've used this utility recently. We had a few problems getting it to work, but ended up using WISE installer to set up the pdf printer.
>
>When testing, I got the following code to work, although I wasn't using CDI.dll:
>
>#DEFINE nofileprompt 1 && do not prompt for file name
>#DEFINE usefilename 2
>*// use file name set by SetDefaultFileName else use document name
>#DEFINE concatenate 4 && concatenate files, do not override
>#DEFINE disablecompression 8 && disable page content compression
>#DEFINE embedfonts 16 && embed fonts used in the input document
>
>
>*// Set default to dir containing pdf dlls etc.
>SET DEFAULT TO c:\mydir
>
>DECLARE LONG PDFDriverInit IN "PdfIntf.dll" STRING Printername
>DECLARE LONG PDFDriverEnd IN "PdfIntf.dll"
>DECLARE LONG SetDefaultDirectory IN "PdfIntf.dll" STRING DirName
>DECLARE LONG SetDefaultFileName IN "PdfIntf.dll" STRING FileName
>DECLARE LONG SetFileNameOptions IN "PdfIntf.dll" INTEGER Options
>
>*// Now create the pdf printer driver
>?pdfdriverinit("pdfprint")
>?setdefaultdirectory("C:\")
>?setdefaultfilename("mydoc.pdf")
>?setfilenameoptions(nofileprompt + usefilename)
>
>*// Set current printer to pdf printer
>SET PRINTER TO NAME "pdfprint"
>REPORT FORM c:\reportdir\myreport TO PRINTER NOCONSOLE
>*// Reset default printer
>SET PRINTER TO
>
>*// Destroy the pdf printer driver
>?pdfdriverend()
>
>Please tell me how you get on.
>
>Best.
>
>Matt.
Well Matt I gave it a shot and got to the following line:

?pdfdriverinit("pdfprint")

which returned 1797. I looked it up in the API and it means "Unknown printer driver". At that point I was stuck. By the way the company Amyuni sent me a FLL library and a sample PRG file. I tried that and got the old "Exception" error.

I rrreeeeaaaaallllyyyy want to get this to work. It has GREAT potential for me.

Thanks so much for your help

Terry
It is impossible to make programs idiot proof. Idiots are too cleaver.

MCP( Tcp/Ip )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform