We want to create an OLE custom control with PDF_Xchange Editor ActiveX Control in a PowerBuilder 12.5 legacy application.
We downloaded the latest version of the Editor SDK and are using PDFXEditCOre.x86.dll
We are aware than Powerbuider is an older tool/langage that has more in common with Visual Basic 6.0. than C#. The sample app included with the SDK is great but unfortunately, is not as helpful as expected for us.
We succeeded to use OpenDocWithDlg . The app shows the file dialog as expected and the selected .pdf document is displayed in the PowerBuilder form.
Code: Select all
uo_pdf_annot.ole_pdf_editor.Object.OpenDocWithDlg()
Code: Select all
uo_pdf_annot.ole_pdf_editor.Object.OpenDocFromPath('C:\Temp\P000086500001305092.pdf')
Do you have an idea why OpenDocWithDlg would work but not OpenDocFromPath ?
Thank you,
Eric