Re: loading a COM object dynamically?
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Jul 2007 12:48:06 -0400
Gideon,
Well, regardless of whether or not it is installed, you should have a
reference to the interop assembly that you are going to use to access it.
Then, when you want to check to see if the appropriate library is installed,
just try to create an instance of your class. Wrap that in a try/catch
handler. If you get an exception, then the product is not installed
properly, and your program can act accordingly.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"giddy" <gidisrael@xxxxxxxxx> wrote in message
news:1184501098.854061.214560@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi,
I'm using OCR in my application. Its not a feature my users can't live
without. I need office 2003+ installed.
So instead of referencing the MODI library, i want to late bind it? In
other words check which exists and then use it.
Is this even possible?!
Gideon
.
- Follow-Ups:
- Re: loading a COM object dynamically?
- From: giddy
- Re: loading a COM object dynamically?
- References:
- loading a COM object dynamically?
- From: giddy
- loading a COM object dynamically?
- Prev by Date: GetDirectories throws PathTooLongException
- Next by Date: Re: c# TCP server client - How to send and recieve on the same port number
- Previous by thread: loading a COM object dynamically?
- Next by thread: Re: loading a COM object dynamically?
- Index(es):
Relevant Pages
|