Late binding with pdfxchange sdk

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Late binding with pdfxchange sdk

Post by jusWest »

hello!

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 :shock:

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);
This always fails at this line:

Code: Select all

var pdfCtl = Activator.CreateInstance(TPdfCtl);
with a "System.MissingMethodException"

So, any ideas?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Late binding with pdfxchange sdk

Post by Sasha - Tracker Dev Team »

Hello jusWest,

Let's talk about what exactly do you want to achieve here.
If you want to load the needed dll dynamically - then we have a way of doing that through the manifest.
Also, do you need the IPXV_Control, or only the IPXV_Inst - the criteria for those differ?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: Late binding with pdfxchange sdk

Post by jusWest »

Yes, the need to load the dll dynamically, without registering it first is what I need
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Late binding with pdfxchange sdk

Post by Sasha - Tracker Dev Team »

Hello jusWest,

Well then the Click-Once method is the right one for you:
https://sdkhelp.pdf-xchange.com/vi ... stribution
You can try it for yourself in the FullDemo application.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Late binding with pdfxchange sdk

Post by Sasha - Tracker Dev Team »

Hello jusWest,

Well then the Click-Once method is the right one for you:
https://sdkhelp.pdf-xchange.com/vi ... stribution
You can try it for yourself in the FullDemo application.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: Late binding with pdfxchange sdk

Post by jusWest »

Thank you, dont know how I missed that one :D
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Late binding with pdfxchange sdk

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply