This might be not entirely related to the SDK. But more like a general question to se if anyone have done this.
I was wondering if any of you av initialized the SDK via late binding in c#?
I must admit, for our application I havent considered using it, but a situation has come up so that we might need it. And I
havent used late binding since the VB6 days
I have tried code like this:
Code: Select all
var libPath = AppDomain.CurrentDomain.BaseDirectory + "Interop.PDFXEdit.dll";
var PDFXEdit_Assembly = Assembly.LoadFrom(libPath);
Type TPdfCtl = PDFXEdit_Assembly.GetType("PDFXEdit.PXV_Control");
var pdfCtl = Activator.CreateInstance(TPdfCtl);
Code: Select all
var pdfCtl = Activator.CreateInstance(TPdfCtl);
So, any ideas?