Need help with automation

M

Max

Hello,

I'm using late binding to make my app compatible with multiple versions
of Microsoft Outlook.
It works fine on the development machine but when I try to run it on another
machine I get an error saying that "The specified module could not be found"
and it mentions mscorlib

I read somewhere that I could load Mscorlib.dll without a path but I'm not
sure how to do that.
Another way is to use the unmanaged metadata API to get the desired info but
I have no experience
with that either. Can anyone help?

Thanks.
 
R

Randall Arnold

Can't you just install Mscorlib.dll on the target machine and add a reference
in the VBA IDE?

Randall Arnold
 
M

Max

Can't you just install Mscorlib.dll on the target machine and add a
reference
in the VBA IDE?

Well I am using the Visual Studio .NET Framework Bootstrapper Plug-in to
install the
..NET Framework on the client machine along with the application.
This should install all the needed files. I even searched the client machine
and it has the
file mscorlib.dll in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 where it
should be.

The application I'm trying to open is Microsoft Outlook 2003. I have tested
this on my dev
machine and it works and it also works fine on two other laptops with
Outlook 2003 installed.
The app works fine with Microsoft Outlook XP as well. It's just this one
machine that has
something wrong with it.... I removed the .NET Framework from it and
uninstalled all other
applications I developed and installed this app again but to no avail....

I have another question as well. I got a COMException when I tested the app
on a machine
with Office 97. Is Microsoft Office 97 too old to be supported? What's going
on?

Max
 
R

Randall Arnold

Don't have any more thoughts just yet, sorry. And I've successfully
automated Office 2000 from VB.NET 2005 with very few issues, but that's as
far back as I've gone. If I recall correctly, Microsoft recommends
interfacing with Office XP and up using .NET. I haven't seen anything
specific to 97 one way or the other, but I wouldn't be surprised if there
were issues.

Randall Arnold
 
M

Max

Hi Randall,

I haven't had a chance to test my app with Outlook 2000 - I don't have
any computers
with that version installed but I'm working on it.... I was wondering what
kind of issues
were there with late binding for Outlook 2000? So far my app works with
Outlook XP
and Outlook 2003.

Max
 
R

Randall Arnold

I haven't tried Outlook 2000 yet, Just Excel 2000. Ran into some funky
syntax issues with Data Series due to lack of an Interop for 2000 but through
brute force and occasional luck I got through them... lol.

Randall
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top