D
Davey P
I have created an add-in for MS Project 2007 using C# (.NET 2.0). One of the
features is to prompt for a filename using a SaveFileDialog, and then
automatically call the Application.FileSaveAs method and save the file as an
XML file. I cannot get this to work at all. The code doesn't exception, but
it doesn't create anything either.
System.Xml.XmlDocument XmlDoc = new System.Xml.XmlDocument();
FileSaveAs(saveFileDialog1.FileName,
Microsoft.Office.Interop.MSProject.PjFileFormat.pjMPP,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,"MSProject.XMLDOM",Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing);
You have to specify a pjFileFormat and XML isn't in the list, so I just set
it to pjMPP.
Any help would be greatly appreciated
features is to prompt for a filename using a SaveFileDialog, and then
automatically call the Application.FileSaveAs method and save the file as an
XML file. I cannot get this to work at all. The code doesn't exception, but
it doesn't create anything either.
System.Xml.XmlDocument XmlDoc = new System.Xml.XmlDocument();
FileSaveAs(saveFileDialog1.FileName,
Microsoft.Office.Interop.MSProject.PjFileFormat.pjMPP,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,"MSProject.XMLDOM",Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing);
You have to specify a pjFileFormat and XML isn't in the list, so I just set
it to pjMPP.
Any help would be greatly appreciated