MsProject 2007 / FileOpen crashes / Interop-Version 11.0.0.0 / VStudio2010l

T

Tom Minori

Dear readers,

I have the following simple code wich throws an exception ("Project annot open the file").


using System;
using Microsoft.Office.Interop.MSProject;

namespace HackingTest
{
class Program
{
static void Main(string[] args)
{
Application app = null;
object oMiss = System.Reflection.Missing.Value;

String fileName = args[0];

app = new Application();
app.FileOpen(fileName, true, oMiss, oMiss, oMiss, oMiss, oMiss, oMiss, oMiss, oMiss, oMiss, PjPoolOpen.pjDoNotOpenPool);
}


I have no idea. Do you have any idea?
 
Joined
Sep 17, 2011
Messages
5
Reaction score
0
Did you ever get the C# version of FileOpen to work??? I've read tons of posts on many sites that quote a similar problem. Many of us had no choice but to revert to the simple VisualBasic version with just a one argument method open(file).
 

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