M
Michael
I have written a standalone C# program which has used the Office/Outlook XP
PIA's to access the Outlook Object Model, Word Object Model, etc. I link
directly to the dll's which come in the PIA "kit", which is probably
non-standard, but allows my standalone app to run even if Microsoft Office
is not installed. I conditionalize my Office-related code by checking
registry entries to determine if various Office applications are installed.
This basically works.
However, I would like to start using the Office 2003 PIA's and link properly
to them via the GAC. These are not just a collection of PIA's and .reg
files, but are instead an installer which requires Microsoft Office to be
installed. This would make my application require Microsoft Office, which
is not acceptable.
Is there any way to build and distribute a C# application that can use the
Microsoft Office object models when present, but also run without problems
when Office is not installed? I have heard about late-binding, but don't
know much about it... is that a possible solution? The examples I have seen
make it seem difficult. Thanks in advance for the help.
Michael
PIA's to access the Outlook Object Model, Word Object Model, etc. I link
directly to the dll's which come in the PIA "kit", which is probably
non-standard, but allows my standalone app to run even if Microsoft Office
is not installed. I conditionalize my Office-related code by checking
registry entries to determine if various Office applications are installed.
This basically works.
However, I would like to start using the Office 2003 PIA's and link properly
to them via the GAC. These are not just a collection of PIA's and .reg
files, but are instead an installer which requires Microsoft Office to be
installed. This would make my application require Microsoft Office, which
is not acceptable.
Is there any way to build and distribute a C# application that can use the
Microsoft Office object models when present, but also run without problems
when Office is not installed? I have heard about late-binding, but don't
know much about it... is that a possible solution? The examples I have seen
make it seem difficult. Thanks in advance for the help.
Michael