By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,894 Members | 2,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,894 IT Pros & Developers. It's quick & easy.

Late Binding in C# - Add control to winform

P: n/a

I user c# 2.0 and want to add acrobat-reader to my application, so I
have to create a Control from AcroPDF.dll to my app. I could do this by
early binding, but I want to program to run without acrobat reader
being installed.

Now I want to create an instance of this controls and add it to my form
at runtime.

I think I have to do something like that:
Type acroT;
acroT =
Type.GetTypeFromProgID("AxAcroPDFLib.AxAcroPDF"); //or AcroPDF.PDF
object acroObj = Activator.CreateInstance(printerType);
As acroObj is a com-object, I can't add it to the form that easy.
How could I do this (without early-binding or adding some references
which need to be deployed)?

Thank you!

Sep 27 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.