Enum PrintErrorsType

PrintErrorsType enumeration

Represents print errors constants.

public enum PrintErrorsType

Values

NameValueDescription
PrintErrorsBlank0Represents not to print errors.
PrintErrorsDash1Represents to print errors as “–”.
PrintErrorsDisplayed2Represents to print errors as displayed.
PrintErrorsNA3Represents to print errors as “#N/A”.

Examples

[C#]

namespace Demos
{
    using Aspose.Cells;
    using System;

    public class PrintErrorsTypeDemo
    {
        public static void PrintErrorsTypeExample()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Access the PageSetup of the worksheet
            PageSetup pageSetup = worksheet.PageSetup;

            // Set different print error types
            pageSetup.PrintErrors = PrintErrorsType.PrintErrorsBlank;
            workbook.Save("PrintErrorsBlank.xlsx");

            pageSetup.PrintErrors = PrintErrorsType.PrintErrorsDash;
            workbook.Save("PrintErrorsDash.xlsx");

            pageSetup.PrintErrors = PrintErrorsType.PrintErrorsDisplayed;
            workbook.Save("PrintErrorsDisplayed.xlsx");

            pageSetup.PrintErrors = PrintErrorsType.PrintErrorsNA;
            workbook.Save("PrintErrorsNA.xlsx");

            return;
        }
    }
}

See Also