Compartilhar via


ExcelScript.PaperType enum

Comentários

Exemplos

/**
 * This script sets the page size for printing.
 */
function main(workbook: ExcelScript.Workbook) {
  // Go to each worksheet so the print settings are consistent.
  workbook.getWorksheets().forEach((sheet) => {
    const pageLayout = sheet.getPageLayout();
    // Print on 8.5"x11" paper.
    pageLayout.setPaperSize(ExcelScript.PaperType.letter);
  });
}

Campos

a3
a4
a4Small
a5
b4
b5
csheet
dsheet
envelope10
envelope11
envelope12
envelope14
envelope9
envelopeB4
envelopeB5
envelopeB6
envelopeC3
envelopeC4
envelopeC5
envelopeC6
envelopeC65
envelopeDL
envelopeItaly
envelopeMonarch
envelopePersonal
esheet
executive
fanfoldLegalGerman
fanfoldStdGerman
fanfoldUS
folio
ledger
legal
letter
letterSmall
note
paper10x14
paper11x17
quatro
statement
tabloid