Late Binding: Type.GetTypeFromProgID("Excel.Application") returns

S

Sven

Hello,

I am working on a C# application with Visual Studio Standard 2008, target
Framework is .Net 3.5

I need to transfer data to Excel and I am using Late Binding. On my dev.
machine - running Win XP and Office 2007 - everything works fine.

For testing purposes, I have Virtual PC set up with Win 7 and Office 2010
(both some 30-90 day eval versions), also .NET 4.0 is installed there. When I
run the (readily compiled) application there, it runs fine in general but the
very first line of the Excel access code will already fail, which is:

Type objClassType = Type.GetTypeFromProgID("Excel.Application");

This will return null. I assume something is missing from the installation
on that virtual machine, but I have no idea what that might be. I also
installed C# Express 2010 meanwhile but to no avail.

Any pointers on what to try next are highly welcome.

Thanks,
Sven
 

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