Hello,
I'm trying to use printPdf function but it returns a code -2, I guess it points out a problem with the license.
I have WPViewPDF V3 PLUS installed
Declaration:
Code
function pdfPrint(filename: PChar; password: PChar; licname, lickey: PChar; liccode: Cardinal; options: PChar): Integer; stdcall; external 'wPDFViewPlus03.dll' name 'pdfPrint';
Implementation:
Code
ShowMessage(inttostr(pdfprint(PChar(fileName), 'L9XX-XXXX-XXXX-XXX',
'Krxxxxxxxxxxxxxxx', 'D=XX-XXXX-XXXX-XXXX', 17XXXXX, 'DIALOG=1')));
Can you help ?