Reader OCX doesn't open pdf files within Borland C++ Builder 6 application
Hello,
We're having trouble to initialize the ocx to view a pdf file within a C++ application wit Borland C++ Builder6.
We imported the ocx into a package and registered the ocx with regsvr32.
We try to initialize the ocx with ret = pdfViewer->Initialize(WideString("")); The return value is "-1", which is correct, since we don't have a valid key yet. We try to open a file like this: ret = pdfViewer->OpenFile(fileName, WideString("")); The return value is "-16", which is confusing, since we can't figure out why the file cannot be opened. Is there something that we 're missing out on how to use the ocx? Could you please tell me what I'm doing wrong to initialize the ocx? If possible please provide a short sample code of how to integrate the ocx within BCB6.
Best regards, Michael Voigt
|