Project project = new Project("New Project.mpp"); SaveOptions options = new XamlOptions(); options.FitContent = true; options.LegendOnEachPage = false; options.Timescale = Timescale.ThirdsOfMonths; project.Save("RenderXAMLWithOptions_out.xaml", options);