PrintOptions

PrintOptions constructor

Initializes a new instance of the PrintOptions class that can be used to set different options to print project.

public PrintOptions()

Examples

Shows how to use print options.

try
{
    var project = new Project(DataDir + "Project2.mpp");
    var options = new PrintOptions
    {
        Timescale = Timescale.ThirdsOfMonths
    };
    if (project.GetPageCount(Timescale.ThirdsOfMonths) <= 280)
    {
        project.Print(options);
    }
}
catch (NoPrinterInstalledException ex)
{
    Console.WriteLine(ex.Message);
}

See Also