>>>
>>>* This program will test the PDF printer Using the report
>>>* test which prints "test"
>>>DECLARE LONG PDFDriverInit IN "CDIntf.DLL"
>>
>>You didn't declare the parameter passed; try:
>>
>>DECLARE INTEGER PDFDriverInit IN "CDIntf.DLL" STRING @ szPrinter
>>
>>>LOCAL lnResult, lcPrinterName
>>>lnResult = 0
>>>lcPrinterName = "PDFPrinter"
>>>lnResult = PDFDriverInit(lcPrinterName)
>>>?
>>>? lnResult
>>>?
>>>
>>>
>>>The following is a listing of the documentation on this function:
>>>
>>>PDFDriverInit( PrinterName )
>>>Return type : long
>>>Description : Initializes the PDF printer
>>>DLL call : HANDLE PDFDriverInit( LPTSTR szPrinter )
< snip >
>Well, I tried to use what you suggested and this time I got:
>
>Declare DLL call caused an exception. (Error 2027)
>The parameters passed to a DLL caused an exception in the DLL.
>
>Make sure that you pass all the necessary parameters to the DLL and that the parameters are of the proper type.
>
The only other thing I can think of is to drop the " around the .DLL name, and to specify the full path of the .DLL if it's not on the Windows search path. The HANDLE is an unsigned 32 bit integer, and LPTSTR is a pointer to a null-terminated string.
Were you supposed to register this .DLL?