SaveReport

SaveReport(Stream)

Saves the project overview report to the stream.

public void SaveReport(Stream stream)
ParameterTypeDescription
streamStreamThe stream to save project report to.

Examples

Shows how to save the project overview report to PDF file.

var project = new Project(DataDir + "Cyclic structure.mpp");

// save the overview report to PDF file to the specified stream.
using (var stream = new FileStream(OutDir + "SaveProjectOverviewReport_out.pdf", FileMode.Create))
{
    project.SaveReport(stream);
}

See Also


SaveReport(string)

Saves the project overview report to PDF file.

public void SaveReport(string fileName)
ParameterTypeDescription
fileNameStringThe file name.

Examples

Shows how to save the project overview report to PDF file into a stream.

var project = new Project(DataDir + "Cyclic structure.mpp");

// one can save the overview report to PDF file to the specified path
project.SaveReport(OutDir + "SaveProjectOverviewReport_out.pdf");

See Also


SaveReport(Stream, ReportType)

Saves the project report of the specified type to the specified stream.

public void SaveReport(Stream stream, ReportType reportType)
ParameterTypeDescription
streamStreamthe specified stream to save project report to.
reportTypeReportTypethe specified report type.ReportType

Examples

Shows how to save the project report to PDF file for specific report type.

var project = new Project(DataDir + "Cyclic structure.mpp");

// save the overview report to PDF file to the specified stream.
using (var stream = new FileStream(OutDir + "SaveProjectOverviewReport_out.pdf", FileMode.Create))
{
    project.SaveReport(stream, ReportType.Burndown);
}

See Also


SaveReport(string, ReportType)

Saves the project report of the specified type in PDF format to the specified file path.

public void SaveReport(string fileName, ReportType reportType)
ParameterTypeDescription
fileNameStringthe specified file name.
reportTypeReportTypethe specified report type.ReportType

Examples

Shows how to save the project project report in PDF format.

var project = new Project(DataDir + "OzBuild 16 Orig.mpp");
project.SaveReport(OutDir + "CostOverview_out.pdf", ReportType.CostOverview);

See Also