Re: loading a COM object dynamically?



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



.



Relevant Pages

  • Re: The Retreat From Reality
    ... the principle of relativity is the requirement that the laws ... >> frame of reference? ... > radios in the hanger deck, regardless of the boat's motion. ...
    (sci.physics.relativity)
  • Re: allowing braces around suites
    ... > thank you for the reference! ... I'm happy to see that Guido wasn't ... > strictly opposed to such a feature 10 years ago. ... Regardless of what he thought back then, I think I can say with ...
    (comp.lang.python)
  • Re: Spirit Pond, Maine
    ... Michael Zalar posted something about the King. ... >>not, at that point, presented my own reference. ... And you just hate that, don't you, regardless ...
    (sci.archaeology)
  • Re: Why single inheritance??
    ... refer to same pointer value regardless of the type that the reference is ... > Specifically what problems could Multiple Inheritance cause in .NET. ... > to the one object in refer to same pointer value regardless of the type ... > interpretations/castings to base types. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Did Skynard and Allman guitarists know theory?
    ... It's amazing that so many guitarists call a blues song a ... reference, I don't mentally keep up with it. ... fretboard patterns make more sense because I'm not thinking individual ... regardless of the "key". ...
    (alt.guitar)