B
Brian Leach
I'm trying to tell Project to "save as" from my C# program, and I almost
have it working, but not quite . . .
When I try it this way:
project.Application.FileSaveAs(
"c:\\test.mpp", // file name
PjFileFormat.pjMPP, // format
false, // backup
false, // ReadOnly
true, // TaskInformation
false, // Filtered
"", // Table
"", // UserID
"", // DB Password
"MSProject.mpp", // FormatID
"", // Map
"", // Password
"", // Write Reserve Password
false, // Clear Baseline
false, // Clear Actuals
false, // Clear ResourceRates
false); // Clear FixedCosts
Project complains that "the map with the specified name does not exist." If
I replace the empty string with null on the Map parameter, Project doesn't
complain, but it doesn't save the file either.
Any ideas what I'm doing wrong (besides not using VBA)?
/brian leach
have it working, but not quite . . .
When I try it this way:
project.Application.FileSaveAs(
"c:\\test.mpp", // file name
PjFileFormat.pjMPP, // format
false, // backup
false, // ReadOnly
true, // TaskInformation
false, // Filtered
"", // Table
"", // UserID
"", // DB Password
"MSProject.mpp", // FormatID
"", // Map
"", // Password
"", // Write Reserve Password
false, // Clear Baseline
false, // Clear Actuals
false, // Clear ResourceRates
false); // Clear FixedCosts
Project complains that "the map with the specified name does not exist." If
I replace the empty string with null on the Map parameter, Project doesn't
complain, but it doesn't save the file either.
Any ideas what I'm doing wrong (besides not using VBA)?
/brian leach