Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Remarks

To return a PageSetup object, use Worksheet.PageSetup.

Note

Since this object is tightly related to the client's printer setup, for those computers without a printer setup, changes to this object have no effect.

Example
Code Block
csharp
csharp
titleC#

          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Create();
          PageSetup ps = wb.Worksheets[0].PageSetup;
        
Code Block
vbnet
vbnet
titlevb.net

          Dim xla As New ExcelApplication()
          Dim wb As Workbook = xla.Create()
          Dim ps As PageSetup = wb.Worksheets(0).PageSetup
        
Properties

Name

Description

Notes

BottomMargin

Excerpt Include
EW8:PageSetup.BottomMargin
EW8:PageSetup.BottomMargin
nopaneltrue

 

CenterFooter

Excerpt Include
EW8:PageSetup.CenterFooter
EW8:PageSetup.CenterFooter
nopaneltrue

 

CenterHeader

Excerpt Include
EW8:PageSetup.CenterHeader
EW8:PageSetup.CenterHeader
nopaneltrue

 

CenterHorizontally

Excerpt Include
EW8:PageSetup.CenterHorizontally
EW8:PageSetup.CenterHorizontally
nopaneltrue

Unsupported for charts

CenterVertically

Excerpt Include
EW8:PageSetup.CenterVertically
EW8:PageSetup.CenterVertically
nopaneltrue

Unsupported for charts

FirstPageNumber

Excerpt Include
EW8:PageSetup.FirstPageNumber
EW8:PageSetup.FirstPageNumber
nopaneltrue

 

FirstPageNumberAuto

Excerpt Include
EW8:PageSetup.FirstPageNumberAuto
EW8:PageSetup.FirstPageNumberAuto
nopaneltrue

 

FitToPagesTall

Excerpt Include
EW8:PageSetup.FitToPagesTall
EW8:PageSetup.FitToPagesTall
nopaneltrue

Unsupported for charts

FitToPagesWide

Excerpt Include
EW8:PageSetup.FitToPagesWide
EW8:PageSetup.FitToPagesWide
nopaneltrue

Unsupported for charts

FooterMargin

Excerpt Include
EW8:PageSetup.FooterMargin
EW8:PageSetup.FooterMargin
nopaneltrue

 

HeaderMargin

Excerpt Include
EW8:PageSetup.HeaderMargin
EW8:PageSetup.HeaderMargin
nopaneltrue

 

LeftFooter

Excerpt Include
EW8:PageSetup.LeftFooter
EW8:PageSetup.LeftFooter
nopaneltrue

 

LeftHeader

Excerpt Include
EW8:PageSetup.LeftHeader
EW8:PageSetup.LeftHeader
nopaneltrue

 

LeftMargin

Excerpt Include
EW8:PageSetup.LeftMargin
EW8:PageSetup.LeftMargin
nopaneltrue

 

Orientation

Excerpt Include
EW8:PageSetup.Orientation
EW8:PageSetup.Orientation
nopaneltrue

 

PaperSize

Excerpt Include
EW8:PageSetup.PaperSize
EW8:PageSetup.PaperSize
nopaneltrue

 

PrintArea

Excerpt Include
EW8:PageSetup.PrintArea
EW8:PageSetup.PrintArea
nopaneltrue

Unsupported for charts

PrintAsDraft

Excerpt Include
EW8:PageSetup.PrintAsDraft
EW8:PageSetup.PrintAsDraft
nopaneltrue

 

PrintCellErrorsAs

Excerpt Include
EW8:PageSetup.PrintCellErrorsAs
EW8:PageSetup.PrintCellErrorsAs
nopaneltrue

Unsupported for charts

PrintComments

Excerpt Include
EW8:PageSetup.PrintComments
EW8:PageSetup.PrintComments
nopaneltrue

Unsupported for charts

PrintCommentsAtEnd

Excerpt Include
EW8:PageSetup.PrintCommentsAtEnd
EW8:PageSetup.PrintCommentsAtEnd
nopaneltrue

Unsupported for charts

PrintGridlines

Excerpt Include
EW8:PageSetup.PrintGridlines
EW8:PageSetup.PrintGridlines
nopaneltrue

Unsupported for charts

PrintHeadings

Excerpt Include
EW8:PageSetup.PrintHeadings
EW8:PageSetup.PrintHeadings
nopaneltrue

Unsupported for charts

PrintInBlackAndWhite

Excerpt Include
EW8:PageSetup.PrintInBlackAndWhite
EW8:PageSetup.PrintInBlackAndWhite
nopaneltrue

 

PrintOrder

Excerpt Include
EW8:PageSetup.PrintOrder
EW8:PageSetup.PrintOrder
nopaneltrue

Unsupported for charts

PrintTitles

Excerpt Include
EW8:PageSetup.PrintTitles
EW8:PageSetup.PrintTitles
nopaneltrue

Unsupported for charts

RightFooter

Excerpt Include
EW8:PageSetup.RightFooter
EW8:PageSetup.RightFooter
nopaneltrue

 

RightHeader

Excerpt Include
EW8:PageSetup.RightHeader
EW8:PageSetup.RightHeader
nopaneltrue

 

RightMargin

Excerpt Include
EW8:PageSetup.RightMargin
EW8:PageSetup.RightMargin
nopaneltrue

 

TopMargin

Excerpt Include
EW8:PageSetup.TopMargin
EW8:PageSetup.TopMargin
nopaneltrue

 

UseZoom

Excerpt Include
EW8:PageSetup.UseZoom
EW8:PageSetup.UseZoom
nopaneltrue

Unsupported for charts

Zoom

Excerpt Include
EW8:PageSetup.Zoom
EW8:PageSetup.Zoom
nopaneltrue

Unsupported for charts

Methods

Name

Description

Notes

GetFooter(HeaderFooterSection.Section)

Excerpt Include
EW8:PageSetup.GetFooter(HeaderFooterSection.Section)
EW8:PageSetup.GetFooter(HeaderFooterSection.Section)
nopaneltrue

 

GetHeader(HeaderFooterSection.Section)

Excerpt Include
EW8:PageSetup.GetHeader(HeaderFooterSection.Section)
EW8:PageSetup.GetHeader(HeaderFooterSection.Section)
nopaneltrue

 

SetPrintTitleColumns(Int32, Int32)

Excerpt Include
EW8:PageSetup.SetPrintTitleColumns(Int32, Int32)
EW8:PageSetup.SetPrintTitleColumns(Int32, Int32)
nopaneltrue

Unsupported for charts

SetPrintTitleRows(Int32, Int32)

Excerpt Include
EW8:PageSetup.SetPrintTitleRows(Int32, Int32)
EW8:PageSetup.SetPrintTitleRows(Int32, Int32)
nopaneltrue

Unsupported for charts

Classes

Name

Description

CellErrorsAs

Excerpt Include
EW8:PageSetup.CellErrorsAs
EW8:PageSetup.CellErrorsAs
nopaneltrue

PageOrientation

Excerpt Include
EW8:PageSetup.PageOrientation
EW8:PageSetup.PageOrientation
nopaneltrue

PagePaperSize

Excerpt Include
EW8:PageSetup.PagePaperSize
EW8:PageSetup.PagePaperSize
nopaneltrue

PagePrintOrder

Excerpt Include
EW8:PageSetup.PagePrintOrder
EW8:PageSetup.PagePrintOrder
nopaneltrue