Quantcast
Channel: Project Developer
Viewing all articles
Browse latest Browse all 50

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

$
0
0
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...

Read more

Viewing all articles
Browse latest Browse all 50

Trending Articles