Sets or returns the paper size that will be used when Excel renders and prints the worksheet.

<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&amp;locale=en_GB&amp;version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>
 public PagePaperSize PaperSize{ get; set; }
</pre></td></tr></table>
<p>Public Property PaperSize() As PagePaperSize</p>

          //--- Get PaperSize
          PageSetup.PagePaperSize size = ps.PaperSize;

          //--- Set PaperSize
          ps.PaperSize = PageSetup.PagePaperSize.A4;
        

          '--- Get PaperSize
          Dim size As PageSetup.PagePaperSize = ps.PaperSize

          '--- Set PaperSize
          ps.PaperSize = PageSetup.PagePaperSize.A4