TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Johan.Peeters
NA
13
0
Problem with FileOpen method of MSProject interop.
Nov 12 2003 5:54 AM
I use the FileOpen method of the MSProject interop in a project created in C# in VisualStudio 2002. This is the code and it works just fine. Code: MSProject.Application myApp = new MSProject.ApplicationClass(); tempApp.FileOpen(file, true, PjMergeType.pjDoNotMerge, true, "", "", false, "", "", "MSProject.mpp", "", PjPoolOpen.pjPoolReadOnly, "", false, false); Now I want to do the same thing in VisualStudio 2003 and now I have to add an extra parameter "XMLName". I tried to add an empty string ("") and (null). This compiles with no errors or warnings. But when I run my application I get an error message: "System.Runtime.InteropServices.COMException (0x80004005): The argument value is not valid." on the call of this method. can anyone tell me what is wrong. Thanks, Johan.
Reply
Answers (
0
)
DTE.LaunchWizard() and it's parameters:
User32.dll help!