// Read the input Project file System::SharedPtr project = System::MakeObject(dataDir + u"CreateProject2.mpp"); System::SharedPtr options = System::MakeObject(); // Add desired Gantt Chart columns System::SharedPtr col = System::MakeObject(u"WBS", 100, &UsingXlsxOptions::_anonymous_method_0); options->get_View()->get_Columns()->Add(col); // Add desired resource view columns System::SharedPtr rscCol = System::MakeObject(u"Cost center", 100, &UsingXlsxOptions::_anonymous_method_1); options->get_ResourceView()->get_Columns()->Add(rscCol); // Add desired assignment view columns System::SharedPtr assnCol = System::MakeObject(u"Notes", 200, &UsingXlsxOptions::_anonymous_method_2); options->get_AssignmentView()->get_Columns()->Add(assnCol); project->Save(dataDir + u"UsingXlsxOptions_out.xlsx", options);