Opening a .mpp file using vb.net - Please help

J

junior77048

This is my first time programming using the ms project object library. I am
trying to open a .mpp file using vb.net. I reference the Microsoft project
object 11.0 library. I know that there is a projects collection object. But
I dont see an open method that will let me open the file. So how can I open
a mpp file using the project object library?
 
R

Rod Gill

The best technique to learn is to open Project, then record a macro of you
doing what you want (in this case opening a project file). The resultant
code can be copy/pasted into Visual Studio. Insert the Project object
variable you have created in VB.net in front of all statements that need it
and you are finished!

This is a big reason why controlling Office applications is quicker and
easier with VB than C#!
 
M

Mostafa Salama

Hello,
i have succseded to connecto to the MPP file from vb code, but i am now
trying to make a linked server from SQL Server to this file, using the
provider: Microsoft.Project.OLEDB.11.0, but it gave me an error connection,
IDBInitialize::Initialize.returned 0x80004005
The error number is 7399: OLEDB Provider 'Microsoft.Project.OLEDB.11.0'
could you help me please
Thanks
Mostafa
 

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