Search Results for

    Show / Hide Table of Contents

    Class PaperSize

    An Enum that represents different sizes of paper for Excel document printing and page setup.

    See https://docs.microsoft.com/en-us/windows/desktop/intl/paper-sizes for more information on windows and Excel paper sizes.

    Inheritance
    System.Object
    PaperSize
    Namespace: IronXL.Printing
    Assembly: IronXL.dll
    Syntax
    public sealed class PaperSize : Enum

    PaperSize sets the sheet size a worksheet uses when printed or exported, assigned to IPrintSetup.PaperSize. The common choices are A4 and Letter for everyday documents, Legal for longer pages, A3 and Tabloid for large layouts, and A5 for compact output. Envelope sizes such as EnvelopeDL and many regional variants are also available, and PrinterDefault defers to the printer's own setting. The Excel print setup example configures the print area and page.

    worksheet.PrintSetup.PaperSize = PaperSize.A4;

    Fields

    A3

    A3 297 x 420 mm

    Declaration
    public const PaperSize A3
    Field Value
    Type Description
    PaperSize

    A4

    A4 210 x 297 mm

    Declaration
    public const PaperSize A4
    Field Value
    Type Description
    PaperSize

    A4EExtra

    A4 Extra 9.27 x 12.69 in

    Declaration
    public const PaperSize A4EExtra
    Field Value
    Type Description
    PaperSize

    A4Plus

    A4 Plus - 210x330 mm

    Declaration
    public const PaperSize A4Plus
    Field Value
    Type Description
    PaperSize

    A4Rotated

    A4 Rotated - 297x210 mm

    Declaration
    public const PaperSize A4Rotated
    Field Value
    Type Description
    PaperSize

    A4Small

    A4 Small 210 x 297 mm

    Declaration
    public const PaperSize A4Small
    Field Value
    Type Description
    PaperSize

    A4Transverse

    A4 Transverse - 210x297 mm

    Declaration
    public const PaperSize A4Transverse
    Field Value
    Type Description
    PaperSize

    A5

    A5 148 x 210 mm

    Declaration
    public const PaperSize A5
    Field Value
    Type Description
    PaperSize

    B4

    B4 (JIS) 257 x 364 mm

    Declaration
    public const PaperSize B4
    Field Value
    Type Description
    PaperSize

    B5

    B5 (JIS) 182 x 257 mm

    Declaration
    public const PaperSize B5
    Field Value
    Type Description
    PaperSize

    CSizeSheet

    C size sheet

    Declaration
    public const PaperSize CSizeSheet
    Field Value
    Type Description
    PaperSize

    DSizeSheet

    D size sheet

    Declaration
    public const PaperSize DSizeSheet
    Field Value
    Type Description
    PaperSize

    ElevenBySeven

    11 x 17 in

    Declaration
    public const PaperSize ElevenBySeven
    Field Value
    Type Description
    PaperSize

    Envelope10

    US Envelope #10 4 1/8 x 9 1/2

    Declaration
    public const PaperSize Envelope10
    Field Value
    Type Description
    PaperSize

    Envelope11

    US Envelope #11 4 1/2 x 10 3/8

    Declaration
    public const PaperSize Envelope11
    Field Value
    Type Description
    PaperSize

    Envelope12

    US Envelope #12 4 3/4 x 11 in

    Declaration
    public const PaperSize Envelope12
    Field Value
    Type Description
    PaperSize

    Envelope14

    US Envelope #14 5 x 11 1/2

    Declaration
    public const PaperSize Envelope14
    Field Value
    Type Description
    PaperSize

    Envelope9

    US Envelope #9 3 7/8 x 8 7/8

    Declaration
    public const PaperSize Envelope9
    Field Value
    Type Description
    PaperSize

    EnvelopeC3

    Envelope C3 324 x 458 mm

    Declaration
    public const PaperSize EnvelopeC3
    Field Value
    Type Description
    PaperSize

    EnvelopeC4

    Envelope C4 229 x 324 mm

    Declaration
    public const PaperSize EnvelopeC4
    Field Value
    Type Description
    PaperSize

    EnvelopeC5

    Envelope C5 162 x 229 mm

    Declaration
    public const PaperSize EnvelopeC5
    Field Value
    Type Description
    PaperSize

    EnvelopeC6

    Envelope C6 114 x 162 mm

    Declaration
    public const PaperSize EnvelopeC6
    Field Value
    Type Description
    PaperSize

    EnvelopeDL

    Envelope DL 110 x 220mm

    Declaration
    public const PaperSize EnvelopeDL
    Field Value
    Type Description
    PaperSize

    EnvelopeMonarch

    US Envelope Monarch 3.875 x 7.5 in

    Declaration
    public const PaperSize EnvelopeMonarch
    Field Value
    Type Description
    PaperSize

    ESizeSheet

    Declaration
    public const PaperSize ESizeSheet
    Field Value
    Type Description
    PaperSize

    Executive

    US Executive 7 1/4 x 10 1/2 in

    Declaration
    public const PaperSize Executive
    Field Value
    Type Description
    PaperSize

    Folio

    Folio 8 1/2 x 13 in

    Declaration
    public const PaperSize Folio
    Field Value
    Type Description
    PaperSize

    Ledger

    US Ledger 17 x 11 in

    Declaration
    public const PaperSize Ledger
    Field Value
    Type Description
    PaperSize

    Legal

    US Legal 8 1/2 x 14 in

    Declaration
    public const PaperSize Legal
    Field Value
    Type Description
    PaperSize

    Letter

    US Letter Small 8 1/2 x 11 in

    Declaration
    public const PaperSize Letter
    Field Value
    Type Description
    PaperSize

    LetterRotated

    US Letter Rotated 11 x 8 1/2 in

    Declaration
    public const PaperSize LetterRotated
    Field Value
    Type Description
    PaperSize

    Note

    US Note 8 1/2 x 11 in

    Declaration
    public const PaperSize Note
    Field Value
    Type Description
    PaperSize

    PrinterDefault

    Default paper size. Works with each printer's default paper setting.

    Declaration
    public const PaperSize PrinterDefault
    Field Value
    Type Description
    PaperSize

    Quarto

    Quarto 215 x 275 mm

    Declaration
    public const PaperSize Quarto
    Field Value
    Type Description
    PaperSize

    Statement

    US Statement 5 1/2 x 8 1/2 in

    Declaration
    public const PaperSize Statement
    Field Value
    Type Description
    PaperSize

    Tabloid

    US Tabloid 11 x 17 in

    Declaration
    public const PaperSize Tabloid
    Field Value
    Type Description
    PaperSize

    TenByFourteen

    10 x 14 in

    Declaration
    public const PaperSize TenByFourteen
    Field Value
    Type Description
    PaperSize

    value__

    Declaration
    public short value__
    Field Value
    Type Description
    System.Int16
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    %s requires a valid license key for further deployment. Get Trial Below.
    ironsuite
    Blue key in circleGet Started for Free
    30 days full access • No credit card required
    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    24/5 technical support

    Full access to our support engineering team during your product trial

    Grey key in circleGet Started for Free
    The trial form was submitted successfully.
    Grey check in circleTrial key delivered
    Your key has been issued and sent to your email.
    Calendar in circleBook Free Live Demo
    No cards • no pitches • no commitments Pick a time for a quick, personalized demo
    Get the most out of your 30-day trial with:

    Live product and key features walk-through

    Project-specific recommendations

    All your questions answered

    Grey key in circleBook Free Live Demo
    Your booking has been completed Check your e-mail for confirmation

    Want to deploy Iron Suite
    to a live project for FREE?

    What’s included?

    • Test in production without watermarks
    • 30 days fully functional product
    • 24/5 technical support during trial
    ironpdf Logo
    ironword Logo
    ironxl Logo
    ironppt Logo
    ironocr Logo
    ironbarcode Logo
    ironqr Logo
    ironprint Logo
    ironzip Logo
    ironwebscraper Logo
    Iron Software sales team
    Online 24/5
    Have Enterprise licensing requirements?
    Request Iron Suite Enterprise trial
    Key in blue circle

    Get your free 30-day Trial Key instantly

    Your trial license will be sent to your email address

    No limitations. 100% unlocked. No credit card.

    bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
    Or
    Key in blue circle

    Complete Your Trial Key Signup

    Tell us a little more about yourself.

    Key in blue circleNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
    Key in blue circle

    Your license key has been delivered to your inbox

    Can't find it? Check your spam folder.

    What’s next?
    Install with NuGet
    Add IronXL to your project
    Quickstart Guide
    Helpful resources to get started

    Need help getting started?

    Book a Free Live Demo

    See IronXL in action and get your licensing questions answered, or

    Key in blue circle

    Your demo request is in.

    You'll receive an invite via email shortly.

    What’s next?
    Explore Documentation
    Review Licensing Options
    badge_greencheck_in_yellowcircle
    Thank you
    Your trial key should be in the email.
    If it is not, please contact support@ironsoftware.com
    • Logo Aetna
    • Logo NASA
    • Logo GE
    • Logo Porsche
    • Logo USDA
    • Logo Qatar
    Join Millions of Engineers who’ve tried IronXL
    Your trial key should be in the email.
    If it is not, please contact support@ironsoftware.com