Class NoPrinterInstalledException

NoPrinterInstalledException class

Represents an exception which is thrown when there is no installed printer in OS.

public class NoPrinterInstalledException : Exception

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