<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Page Setup Features with Golang via C&#43;&#43;</title>
    <link>https://docs.aspose.com/cells/go-cpp/page-setup-features/</link>
    <description>Recent content in Page Setup Features with Golang via C&#43;&#43; on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/go-cpp/page-setup-features/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Setting Page Options with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/setting-page-options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/setting-page-options/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes, it is necessary to configure page‑setup settings for worksheets to control printing. These page‑setup settings offer various options.
&lt;/div&gt;

&lt;h2 id=&#34;setting-page-options&#34;&gt;&lt;strong&gt;Setting Page Options&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Page‑setup options are fully supported in Aspose.Cells. This article explains how to set page options with Aspose.Cells and shows code samples for setting:&lt;/p&gt;
&lt;p&gt;Aspose.Cells provides a class, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbook/&#34;&gt;&lt;strong&gt;Workbook&lt;/strong&gt;&lt;/a&gt;, that represents a Microsoft Excel file. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbook/&#34;&gt;&lt;strong&gt;Workbook&lt;/strong&gt;&lt;/a&gt; class contains a &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/worksheetcollection/&#34;&gt;&lt;strong&gt;Worksheets&lt;/strong&gt;&lt;/a&gt; collection that allows access to each worksheet in the Excel file. A worksheet is represented by the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/worksheet/&#34;&gt;&lt;strong&gt;Worksheet&lt;/strong&gt;&lt;/a&gt; class.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/worksheet/&#34;&gt;&lt;strong&gt;Worksheet&lt;/strong&gt;&lt;/a&gt; class provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; property that is used to set the page‑setup options of the worksheet. In fact, this &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; property is an object of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class used to set different page‑layout options for a printed worksheet. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class provides various properties used to set page‑setup options. Some of these properties are discussed below.&lt;/p&gt;
&lt;h3 id=&#34;page-orientation&#34;&gt;&lt;strong&gt;Page Orientation&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Page orientation can be set to portrait or landscape using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class&#39; &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getorientation/&#34;&gt;&lt;strong&gt;GetOrientation()&lt;/strong&gt;&lt;/a&gt; property. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getorientation/&#34;&gt;&lt;strong&gt;GetOrientation()&lt;/strong&gt;&lt;/a&gt; property accepts one of the pre‑defined values in the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pageorientationtype/&#34;&gt;&lt;strong&gt;PageOrientationType&lt;/strong&gt;&lt;/a&gt; enumeration, listed below.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Page Orientation Types&lt;/strong&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Landscape&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Landscape orientation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Portrait&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Portrait orientation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPageOptions.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;scaling-factor&#34;&gt;&lt;strong&gt;Scaling Factor&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;It is possible to reduce or enlarge a worksheet&amp;rsquo;s size by adjusting the scaling factor with the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getzoom/&#34;&gt;&lt;strong&gt;PageSetup.GetZoom()&lt;/strong&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPageOptions-1.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;fittopages-options&#34;&gt;&lt;strong&gt;FitToPages Options&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;To fit the contents of the worksheet to a specific number of pages, use the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class&#39; &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getfittopagestall/&#34;&gt;&lt;strong&gt;GetFitToPagesTall()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getfittopageswide/&#34;&gt;&lt;strong&gt;GetFitToPagesWide()&lt;/strong&gt;&lt;/a&gt; properties. These properties are also used to scale worksheets.&lt;/p&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

You can either choose the &lt;strong&gt;GetFitToPagesTall() / GetFitToPagesWide()&lt;/strong&gt; properties or the &lt;strong&gt;GetZoom()&lt;/strong&gt; property, but not both at the same time.
&lt;/div&gt;

&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPageOptions-2.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;paper-size&#34;&gt;&lt;strong&gt;Paper Size&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Set the paper size that the worksheets will be printed to using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class&#39; &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getpapersize/&#34;&gt;&lt;strong&gt;GetPaperSize()&lt;/strong&gt;&lt;/a&gt; property. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getpapersize/&#34;&gt;&lt;strong&gt;GetPaperSize()&lt;/strong&gt;&lt;/a&gt; property accepts one of the pre‑defined values in the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/papersizetype/&#34;&gt;&lt;strong&gt;PaperSizeType&lt;/strong&gt;&lt;/a&gt; enumeration, listed below.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Paper Size Types&lt;/strong&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLetter&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Letter (8‑1/2 in. x 11 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLetterSmall&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Letter Small (8‑1/2 in. x 11 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperTabloid&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Tabloid (11 in. x 17 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLedger&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Ledger (17 in. x 11 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLegal&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Legal (8‑1/2 in. x 14 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperStatement&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Statement (5‑1/2 in. x 8‑1/2 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperExecutive&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Executive (7‑1/4 in. x 10‑1/2 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA3&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A3 (297 mm x 420 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A4 (210 mm x 297 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA4Small&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A4 Small (210 mm x 297 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA5&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A5 (148 mm x 210 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperB4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;JIS B4 (257 mm x 364 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperB5&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;JIS B5 (182 mm x 257 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperFolio&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Folio (8‑1/2 in. x 13 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperQuarto&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Quarto (215 mm x 275 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Paper10x14&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;10 in. x 14 in.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Paper11x17&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;11 in. x 17 in.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperNote&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Note (8‑1/2 in. x 11 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelope9&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope #9 (3‑7/8 in. x 8‑7/8 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelope10&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope #10 (4‑1/8 in. x 9‑1/2 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelope11&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope #11 (4‑1/2 in. x 10‑3/8 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelope12&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope #12 (4‑1/2 in. x 11 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelope14&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope #14 (5 in. x 11‑1/2 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperCSheet&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;C size sheet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperDSheet&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;D size sheet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperESheet&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;E size sheet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeDL&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope DL (110 mm x 220 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeC5&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope C5 (162 mm x 229 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeC3&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope C3 (324 mm x 458 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeC4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope C4 (229 mm x 324 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeC6&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope C6 (114 mm x 162 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeC65&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope C65 (114 mm x 229 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeB4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope B4 (250 mm x 353 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeB5&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope B5 (176 mm x 250 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeB6&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope B6 (176 mm x 125 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeItaly&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope Italy (110 mm x 230 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeMonarch&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope Monarch (3‑7/8 in. x 7‑1/2 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopePersonal&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope (3‑5/8 in. x 6‑1/2 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperFanfoldUS&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;U.S. Standard Fanfold (14‑7/8 in. x 11 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperFanfoldStdGerman&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;German Standard Fanfold (8‑1/2 in. x 12 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperFanfoldLegalGerman&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;German Legal Fanfold (8‑1/2 in. x 13 in.)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperISOB4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;B4 (ISO) 250 x 353 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapanesePostcard&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Postcard (100 mm x 148 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Paper9x11&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;9 in. x 11 in.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Paper10x11&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;10 in. x 11 in.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Paper15x11&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;15 in. x 11 in.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperEnvelopeInvite&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Envelope Invite (220 mm x 220 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLetterExtra&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;US Letter Extra 9¼ x 12 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLegalExtra&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;US Legal Extra 9¼ x 15 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperTabloidExtra&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;US Tabloid Extra 11.69 x 18 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA4Extra&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A4 Extra 9.27 x 12.69 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLetterTransverse&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Letter Transverse 8¼ x 11 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA4Transverse&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A4 Transverse 210 x 297 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLetterExtraTransverse&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Letter Extra Transverse 9¼ x 12 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperSuperA&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;SuperA/SuperA/A4 227 x 356 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperSuperB&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;SuperB/SuperB/A3 305 x 487 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLetterPlus&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;US Letter Plus 8.5 x 12.69 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA4Plus&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A4 Plus 210 x 330 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA5Transverse&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A5 Transverse 148 x 210 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJISB5Transverse&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;B5 (JIS) Transverse 182 x 257 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA3Extra&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A3 Extra 322 x 445 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA5Extra&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A5 Extra 174 x 235 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperISOB5Extra&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;B5 (ISO) Extra 201 x 276 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA2&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A2 420 x 594 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA3Transverse&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A3 Transverse 297 x 420 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA3ExtraTransverse&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A3 Extra Transverse 322 x 445 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseDoublePostcard&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Double Postcard 200 x 148 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA6&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A6 105 x 148 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeKaku2&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Kaku #2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeKaku3&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Kaku #3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeChou3&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Chou #3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeChou4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Chou #4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperLetterRotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;11 in x 8.5 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA3Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;420 mm x 297 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA4Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;297 mm x 210 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA5Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;210 mm x 148 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJISB4Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;B4 (JIS) Rotated 364 x 257 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJISB5Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;B5 (JIS) Rotated 257 x 182 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapanesePostcardRotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Postcard Rotated 148 x 100 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseDoublePostcardRotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Double Japanese Postcard Rotated 148 x 200 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperA6Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A6 Rotated 148 x 105 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeKaku2Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Kaku #2 Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeKaku3Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Kaku #3 Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeChou3Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Chou #3 Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeChou4Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope Chou #4 Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJISB6&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;B6 (JIS) 128 x 182 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJISB6Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;B6 (JIS) Rotated 182 x 128 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Paper12x11&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;12 x 11 in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeYou4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope You #4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperJapaneseEnvelopeYou4Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Japanese Envelope You #4 Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRC16K&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC 16K 146 x 215 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRC32K&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC 32K 97 x 151 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCBig32K&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC 32K (Big) 97 x 151 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope1&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #1 102 x 165 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope2&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #2 102 x 176 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope3&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #3 125 x 176 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope4&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #4 110 x 208 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope5&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #5 110 x 220 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope6&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #6 120 x 230 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope7&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #7 160 x 230 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope8&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #8 120 x 309 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope9&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #9 229 x 324 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope10&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #10 324 x 458 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRC16KRotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC 16K Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRC32KRotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC 32K Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCBig32KRotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC 32K (Big) Rotated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope1Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #1 Rotated 165 x 102 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope2Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #2 Rotated 176 x 102 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope3Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #3 Rotated 176 x 125 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope4Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #4 Rotated 208 x 110 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope5Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #5 Rotated 220 x 110 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope6Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #6 Rotated 230 x 120 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope7Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #7 Rotated 230 x 160 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope8Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #8 Rotated 309 x 120 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope9Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #9 Rotated 324 x 229 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperPRCEnvelope10Rotated&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PRC Envelope #10 Rotated 458 x 324 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperB3&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;usual B3 (13.9 x 19.7 in)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperBusinessCard&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Business Card (90 mm x 55 mm)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PaperThermal&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Thermal (3 x 11 in)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Custom&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Represents the custom paper size.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPageOptions-3.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;print-quality&#34;&gt;&lt;strong&gt;Print Quality&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Set the print quality of the worksheets to be printed with the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class&#39; &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintquality/&#34;&gt;&lt;strong&gt;GetPrintQuality()&lt;/strong&gt;&lt;/a&gt; property. The measuring unit for print quality is Dots Per Inch (DPI).&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPageOptions-4.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;first-page-number&#34;&gt;&lt;strong&gt;First Page Number&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Start the numbering of worksheet pages using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class&#39; &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getfirstpagenumber/&#34;&gt;&lt;strong&gt;GetFirstPageNumber()&lt;/strong&gt;&lt;/a&gt; property. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getfirstpagenumber/&#34;&gt;&lt;strong&gt;GetFirstPageNumber()&lt;/strong&gt;&lt;/a&gt; property sets the page number of the first worksheet page, and the subsequent pages are numbered in ascending order.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPageOptions-5.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Setting Margins with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/setting-margins/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/setting-margins/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells fully supports Microsoft Excel&amp;rsquo;s page setup options. Developers may need to configure page setup settings for worksheets to control the printing process. This topic discusses how to use Aspose.Cells to configure page margins.
&lt;/div&gt;

&lt;h2 id=&#34;setting-margins&#34;&gt;&lt;strong&gt;Setting Margins&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells provides a class, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbook/&#34;&gt;&lt;strong&gt;Workbook&lt;/strong&gt;&lt;/a&gt;, that represents an Excel file. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbook/&#34;&gt;&lt;strong&gt;Workbook&lt;/strong&gt;&lt;/a&gt; class contains the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/worksheetcollection/&#34;&gt;&lt;strong&gt;Worksheets&lt;/strong&gt;&lt;/a&gt; collection that allows access to each worksheet in the Excel file. A worksheet is represented by the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/worksheet/&#34;&gt;&lt;strong&gt;Worksheet&lt;/strong&gt;&lt;/a&gt; class.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/worksheet/&#34;&gt;&lt;strong&gt;Worksheet&lt;/strong&gt;&lt;/a&gt; class provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; property used to set the page setup options for a worksheet. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; property is an object of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class that enables developers to set different page layout options for a printed worksheet. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class provides various properties and methods used to set page‑setup options.&lt;/p&gt;
&lt;h3 id=&#34;page-margins&#34;&gt;&lt;strong&gt;Page Margins&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Set page margins (left, right, top, bottom) using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class members. A few of the methods are listed below which are used to specify page margins:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getleftmargin/&#34;&gt;&lt;strong&gt;GetLeftMargin()&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getrightmargin/&#34;&gt;&lt;strong&gt;GetRightMargin()&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/gettopmargin/&#34;&gt;&lt;strong&gt;GetTopMargin()&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getbottommargin/&#34;&gt;&lt;strong&gt;GetBottomMargin()&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingMargins.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;center-on-page&#34;&gt;&lt;strong&gt;Center on Page&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;It is possible to center content on a page horizontally and vertically. For this, there are useful members of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class, &lt;strong&gt;SetCenterHorizontally()&lt;/strong&gt; and &lt;strong&gt;SetCenterVertically()&lt;/strong&gt;.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingMargins-1.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;header-and-footer-margins&#34;&gt;&lt;strong&gt;Header and Footer Margins&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Set header and footer margins with the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class members such as &lt;strong&gt;SetHeaderMargin()&lt;/strong&gt; and &lt;strong&gt;SetFooterMargin()&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingMargins-2.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Setting Headers and Footers with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/setting-headers-and-footers/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/setting-headers-and-footers/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Headers and footers are the lines of text displayed &lt;strong&gt;above&lt;/strong&gt; the top margin or &lt;strong&gt;below&lt;/strong&gt; the bottom margin, respectively. Headers and footers can also be added to worksheets. They can be used to display useful information such as page number, author name, topic name, or date and time. Headers and footers are managed using the page‑setup settings.
&lt;/div&gt;

&lt;h2 id=&#34;setting-headers-and-footers&#34;&gt;&lt;strong&gt;Setting Headers and Footers&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells allows you to add headers and footers to worksheets at runtime, but we recommend setting headers and footers manually in a pre‑designed file for printing. You can use Microsoft Excel as a GUI tool to set headers and footers to save effort and development time. Aspose.Cells can import the file and preserve the settings.&lt;/p&gt;
&lt;p&gt;To add headers and footers at runtime, Aspose.Cells provides special API calls and script commands to format headers and footers.&lt;/p&gt;
&lt;h3 id=&#34;script-commands&#34;&gt;&lt;strong&gt;Script Commands&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Script commands are special commands that allow you to set header and footer formatting.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Script Commands&lt;/strong&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;P&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;The current page number&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;G&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;A picture&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;N&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;The total number of pages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;D&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;The current date&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;T&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;The current time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;A&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;The worksheet name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;F&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;The file name without its path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;&amp;amp;Text&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Shows &amp;amp;Text. For example: &amp;amp;&amp;amp;WO will be displayed as &amp;amp;WO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;&amp;quot;&amp;lt;FontName&amp;gt;&amp;quot;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Represents a font name. For example: &amp;amp;&amp;ldquo;Arial&amp;rdquo;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;&amp;quot;&amp;lt;FontName&amp;gt;, &amp;lt;FontStyle&amp;gt;&amp;quot;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Represents font name with style. For example: &amp;amp;&amp;ldquo;Arial,Bold&amp;rdquo;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&amp;amp;&amp;lt;FontSize&amp;gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Represents font size. For example: &amp;ldquo;&amp;amp;14abc&amp;rdquo;. However, if this command is followed by a plain number to be printed in the header, the number should be separated from the font size with a space character. For example: &amp;ldquo;&amp;amp;14 123&amp;rdquo;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;set-headers-and-footers&#34;&gt;&lt;strong&gt;Set Headers and Footers&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class provides two methods, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/setheader/&#34;&gt;&lt;strong&gt;SetHeader&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/setfooter/&#34;&gt;&lt;strong&gt;SetFooter&lt;/strong&gt;&lt;/a&gt;, used to add a header and footer to a worksheet. These methods take only two parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Section&lt;/strong&gt; – the section where the header or footer should be placed. There are three sections: left, center and right, represented by 0, 1 and 2 respectively.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Script&lt;/strong&gt; – the script to be used for the header or footer. This script contains script commands to format headers or footers.&lt;/li&gt;
&lt;/ul&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingHeadersAndFooters.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;insert-an-image-into-a-header-or-footer&#34;&gt;&lt;strong&gt;Insert an Image into a Header or Footer&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class has two additional methods, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/setheaderpicture/&#34;&gt;&lt;strong&gt;SetHeaderPicture&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/setfooterpicture/&#34;&gt;&lt;strong&gt;SetFooterPicture&lt;/strong&gt;&lt;/a&gt;, used to add pictures into the header and footer. These methods take the following parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Section&lt;/strong&gt; – the header or footer section where the picture will be placed. There are three sections, left, center and right, represented by the values 0, 1 and 2 respectively.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Byte array&lt;/strong&gt; – the graphical data (the binary data should be written into the buffer of a byte array).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After executing the code below and opening the file, check the header of the worksheet as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On the &lt;strong&gt;File&lt;/strong&gt; menu, select &lt;strong&gt;Page Setup&lt;/strong&gt;. A dialog will be displayed.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Header/Footer&lt;/strong&gt; tab.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingHeadersAndFooters-1.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Setting Different Headers and Footers For Different Pages with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/setting-different-headers-and-footers-for-pages-to-excel/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/setting-different-headers-and-footers-for-pages-to-excel/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

MS Excel supports setting different headers and footers for the first page, odd pages, and even pages since Excel 2007.&lt;br&gt;
Aspose.Cells supports the same feature.
&lt;/div&gt;

&lt;h2 id=&#34;setting-different-headers-and-footers-in-ms-excel&#34;&gt;&lt;strong&gt;Setting Different Headers and Footers in MS Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src=&#34;difpage.png&#34; alt=&#34;Setting Different Headers and Footers&#34;&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Page Layout &amp;gt; Print Titles &amp;gt; Header/Footer&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Check &lt;strong&gt;Different Odd and Even Pages&lt;/strong&gt; or &lt;strong&gt;Different First Page&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter different headers and footers.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;setting-different-headers-and-footers-with-asposecells&#34;&gt;&lt;strong&gt;Setting Different Headers and Footers with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells behaves the same as Excel.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Set the flags &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/ishfdiffoddeven/&#34;&gt;PageSetup.IsHFDiffOddEven&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/ishfdifffirst/&#34;&gt;PageSetup.IsHFDiffFirst&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Enter different headers and footers.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingDifferentHeadersAndFootersOfPages.go&#34;&gt;&lt;/script&gt;
&lt;br&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Setting Print Options with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/setting-print-options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/setting-print-options/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Microsoft Excel&amp;rsquo;s page setup settings provide several print options (also referred to as sheet options) that allow users to control how worksheet pages are printed.
&lt;/div&gt;

&lt;h2 id=&#34;setting-print-options&#34;&gt;&lt;strong&gt;Setting Print Options&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;These print options allow users to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Select a specific print area on a worksheet.&lt;/li&gt;
&lt;li&gt;Print titles.&lt;/li&gt;
&lt;li&gt;Print gridlines.&lt;/li&gt;
&lt;li&gt;Print row/column headings.&lt;/li&gt;
&lt;li&gt;Print in draft quality.&lt;/li&gt;
&lt;li&gt;Print comments.&lt;/li&gt;
&lt;li&gt;Print cell errors.&lt;/li&gt;
&lt;li&gt;Define page ordering.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Aspose.Cells supports all the print options offered by Microsoft Excel, and developers can easily configure these options for worksheets using the properties offered by the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class. How these properties are used is discussed below in more detail.&lt;/p&gt;
&lt;h3 id=&#34;set-print-area&#34;&gt;&lt;strong&gt;Set Print Area&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;By default, the print area incorporates all areas of the worksheet that contain data. Developers can establish a specific print area of the worksheet.&lt;/p&gt;
&lt;p&gt;To select a specific print area, use the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class&amp;rsquo;s &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintarea/&#34;&gt;&lt;strong&gt;GetPrintArea()&lt;/strong&gt;&lt;/a&gt; method. Assign a cell range that defines the print area to this property.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintOptions.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;set-print-titles&#34;&gt;&lt;strong&gt;Set Print Titles&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Aspose.Cells allows you to designate row and column headers to repeat on all pages of a printed worksheet. To do so, use the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class&amp;rsquo;s &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinttitlecolumns/&#34;&gt;&lt;strong&gt;GetPrintTitleColumns()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinttitlerows/&#34;&gt;&lt;strong&gt;GetPrintTitleRows()&lt;/strong&gt;&lt;/a&gt; properties.&lt;/p&gt;
&lt;p&gt;The rows or columns that will be repeated are defined by passing their row or column numbers. For example, rows are defined as $1:$2 and columns are defined as $A:$B.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintOptions-1.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;set-other-print-options&#34;&gt;&lt;strong&gt;Set Other Print Options&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class also provides several other properties to set general print options as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintgridlines/&#34;&gt;&lt;strong&gt;GetPrintGridlines()&lt;/strong&gt;&lt;/a&gt;: a Boolean property that defines whether to print gridlines or not.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintheadings/&#34;&gt;&lt;strong&gt;GetPrintHeadings()&lt;/strong&gt;&lt;/a&gt;: a Boolean property that defines whether to print row and column headings or not.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getblackandwhite/&#34;&gt;&lt;strong&gt;GetBlackAndWhite()&lt;/strong&gt;&lt;/a&gt;: a Boolean property that defines whether to print the worksheet in black and white mode or not.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintcomments/&#34;&gt;&lt;strong&gt;GetPrintComments()&lt;/strong&gt;&lt;/a&gt;: defines whether to print comments on the worksheet or at the end of the worksheet.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintdraft/&#34;&gt;&lt;strong&gt;GetPrintDraft()&lt;/strong&gt;&lt;/a&gt;: a Boolean property that defines whether to print the sheet without graphics.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinterrors/&#34;&gt;&lt;strong&gt;GetPrintErrors()&lt;/strong&gt;&lt;/a&gt;: defines whether to print cell errors as displayed, blank, dash, or N/A.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To set the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintcomments/&#34;&gt;&lt;strong&gt;GetPrintComments()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinterrors/&#34;&gt;&lt;strong&gt;GetPrintErrors()&lt;/strong&gt;&lt;/a&gt; properties, Aspose.Cells also provides two enumerations, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/printcommentstype/&#34;&gt;&lt;strong&gt;PrintCommentsType&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/printerrorstype/&#34;&gt;&lt;strong&gt;PrintErrorsType&lt;/strong&gt;&lt;/a&gt; that contain pre‑defined values to be assigned to those properties respectively.&lt;/p&gt;
&lt;p&gt;The pre‑defined values in the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/printcommentstype/&#34;&gt;&lt;strong&gt;PrintCommentsType&lt;/strong&gt;&lt;/a&gt; enumeration are listed below with their descriptions.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Print Comments Types&lt;/strong&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PrintInPlace&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Specifies to print comments as displayed on the worksheet.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PrintNoComments&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Specifies not to print comments.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PrintSheetEnd&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Specifies to print comments at the end of the worksheet.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The pre‑defined values of &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/printerrorstype/&#34;&gt;&lt;strong&gt;PrintErrorsType&lt;/strong&gt;&lt;/a&gt; enumeration are listed below with their descriptions.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Print Errors Types&lt;/strong&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PrintErrorsBlank&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Specifies not to print errors.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PrintErrorsDash&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Specifies to print errors as “&amp;ndash;”.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PrintErrorsDisplayed&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Specifies to print errors as displayed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;PrintErrorsNA&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Specifies to print errors as “#N/A”.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintOptions-2.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;set-page-order&#34;&gt;&lt;strong&gt;Set Page Order&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getorder/&#34;&gt;&lt;strong&gt;GetOrder()&lt;/strong&gt;&lt;/a&gt; property, which is used to specify the order of multiple pages of your worksheet to be printed. There are two possible orders:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Down then over:&lt;/strong&gt; prints all the pages downward before printing any pages to the right.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Over then down:&lt;/strong&gt; prints pages left to right before printing the pages below.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Aspose.Cells provides an enumeration, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/printordertype/&#34;&gt;&lt;strong&gt;PrintOrderType&lt;/strong&gt;&lt;/a&gt; that contains all pre‑defined order types.&lt;/p&gt;
&lt;p&gt;The pre‑defined values of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/printordertype/&#34;&gt;&lt;strong&gt;PrintOrderType&lt;/strong&gt;&lt;/a&gt; enumeration are listed below.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Print Order Types&lt;/strong&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;DownThenOver&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Represents printing order as down then over.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;OverThenDown&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Represents printing order as over then down.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintOptions-3.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Get Paper Width and Height of Page Setup of Worksheet with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/get-paper-width-and-height-of-page-setup-of-worksheet/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/get-paper-width-and-height-of-page-setup-of-worksheet/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes, you need to know the width and height of a paper size as set in the page setup of the worksheet. Please use the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getpaperwidth/&#34;&gt;&lt;strong&gt;GetPaperWidth()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getpaperheight/&#34;&gt;&lt;strong&gt;GetPaperHeight()&lt;/strong&gt;&lt;/a&gt; methods for this purpose.&lt;/p&gt;
&lt;h2 id=&#34;get-paper-width-and-height-of-page-setup-of-worksheet&#34;&gt;&lt;strong&gt;Get Paper Width and Height of Page Setup of Worksheet&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code demonstrates the usage of &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getpaperwidth/&#34;&gt;&lt;strong&gt;GetPaperWidth()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getpaperheight/&#34;&gt;&lt;strong&gt;GetPaperHeight()&lt;/strong&gt;&lt;/a&gt; methods. It first changes the paper size to &lt;em&gt;A2&lt;/em&gt; and prints the width and height of the paper, then changes it to &lt;em&gt;A3&lt;/em&gt;, &lt;em&gt;A4&lt;/em&gt;, and &lt;em&gt;Letter&lt;/em&gt;, printing the corresponding dimensions each time.&lt;/p&gt;
&lt;h3 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h3&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-GetPaperWidthAndHeightOfPageSetupOfWorksheet.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;console-output&#34;&gt;&lt;strong&gt;Console Output&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Here is the console output of the above sample code.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go&#34; data-lang=&#34;go&#34;&gt;&lt;span class=&#34;nx&#34;&gt;PaperA2&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;16.54&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;x23&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;.39&lt;/span&gt;
&lt;span class=&#34;nx&#34;&gt;PaperA3&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;11.69&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;x16&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;.54&lt;/span&gt;
&lt;span class=&#34;nx&#34;&gt;PaperA4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;8.27&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;x11&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;.69&lt;/span&gt;
&lt;span class=&#34;nx&#34;&gt;PaperLetter&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mf&#34;&gt;8.5&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;x11&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Remove Existing PrinterSettings of Worksheets in Excel file with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/remove-existing-printersettings-of-worksheets-in-excel-file/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/remove-existing-printersettings-of-worksheets-in-excel-file/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes developers want to prevent Excel from including &lt;em&gt;.bin&lt;/em&gt; files of printer settings in the saved XLSX files. Printer settings files are located under &lt;em&gt;“[file &amp;ldquo;root&amp;rdquo;]\xl\printerSettings”.&lt;/em&gt; This document explains how to remove existing printer settings using Aspose.Cells APIs.&lt;/p&gt;
&lt;h2 id=&#34;remove-existing-printersettings-of-worksheets-in-excel-file&#34;&gt;&lt;strong&gt;Remove Existing PrinterSettings of Worksheets in Excel file&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells allows you to remove existing printer settings specified for different sheets in the Excel file. The following sample code illustrates how to remove existing printer settings for all the worksheets in the workbook. Please see its &lt;a href=&#34;45056020.xlsx&#34;&gt;sample Excel file&lt;/a&gt;, &lt;a href=&#34;45056021.xlsx&#34;&gt;output Excel file&lt;/a&gt;, console output as well as the screenshot for a reference.&lt;/p&gt;
&lt;h2 id=&#34;screenshot&#34;&gt;&lt;strong&gt;Screenshot&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;img src=&#34;remove-existing-printersettings-of-worksheets-in-excel-file_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-RemoveExistingPrintersettingsOfWorksheetsInExcelFile.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;console-output&#34;&gt;&lt;strong&gt;Console Output&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span class=&#34;n&#34;&gt;PrinterSettings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;exist&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Sheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet1&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;PaperLegal&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Printer&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;settings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;are&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;now&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;removed&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;by&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;setting&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;it&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;null&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;PrinterSettings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;exist&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Sheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet2&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;PaperEnvelopeB5&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Printer&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;settings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;are&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;now&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;removed&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;by&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;setting&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;it&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;null&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;PrinterSettings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;exist&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Sheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet3&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;PaperA6&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Printer&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;settings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;are&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;now&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;removed&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;by&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;setting&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;it&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;null&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;PrinterSettings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;exist&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Sheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet4&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;PaperA3&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Printer&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;settings&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;are&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;now&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;removed&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;by&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;setting&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;it&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;null&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Implement Custom Paper Size of Worksheet for Rendering with Go</title>
      <link>https://docs.aspose.com/cells/gocpp/implement-custom-paper-size-of-worksheet-for-rendering/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/gocpp/implement-custom-paper-size-of-worksheet-for-rendering/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;There is no direct option available to create custom paper sizes in MS Excel; however, you can set a custom paper size for your desired worksheets when rendering Excel files to the PDF format. This document explains how to set a custom paper size of a worksheet using Aspose.Cells APIs.&lt;/p&gt;
&lt;h2 id=&#34;implement-custom-paper-size-of-worksheet-for-rendering&#34;&gt;&lt;strong&gt;Implement Custom Paper Size of Worksheet for Rendering&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells allows you to set your desired paper size for the worksheet. You may use the &lt;a href=&#34;https://reference.aspose.com/cells/cpp/aspose.cells/pagesetup/custompapersize/&#34;&gt;&lt;strong&gt;CustomPaperSize&lt;/strong&gt;&lt;/a&gt; method of the &lt;a href=&#34;https://reference.aspose.com/cells/cpp/aspose.cells/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; class to specify a custom page size. The following sample code illustrates how to specify a custom paper size for the first worksheet in the workbook. Please also see the &lt;a href=&#34;45056028.pdf&#34;&gt;output PDF&lt;/a&gt; generated with the following code for reference.&lt;/p&gt;
&lt;h2 id=&#34;screenshot&#34;&gt;&lt;strong&gt;Screenshot&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;img src=&#34;implement-custom-paper-size-of-worksheet-for-rendering_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-ImplementCustomPaperSizeOfWorksheetForRendering.go&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: Copy Page Setup Settings from Source Worksheet into Destination Worksheet with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/copy-page-setup-settings-from-source-worksheet-into-destination-worksheet/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/copy-page-setup-settings-from-source-worksheet-into-destination-worksheet/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;When you add a new sheet to a workbook, it contains the default &lt;em&gt;Page Setup settings&lt;/em&gt;. There may be times when you need to transfer the settings (&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt;) from one worksheet to another. This document explains how to copy Page Setup settings from one worksheet to another using Aspose.Cells APIs.&lt;/p&gt;
&lt;h2 id=&#34;copy-page-setup-settings-from-source-worksheet-into-destination-worksheet&#34;&gt;&lt;strong&gt;Copy Page Setup Settings from Source Worksheet into Destination Worksheet&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code illustrates how to copy &lt;em&gt;Page Setup settings&lt;/em&gt; from one worksheet to another using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/copy/&#34;&gt;&lt;strong&gt;PageSetup.Copy()&lt;/strong&gt;&lt;/a&gt; method. Please refer to the sample code and its console output for reference.&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-CopyPageSetupSettingsFromSourceWorksheetIntoDestinationWorksheet.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;console-output&#34;&gt;&lt;strong&gt;Console Output&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go&#34; data-lang=&#34;go&#34;&gt;&lt;span class=&#34;nx&#34;&gt;Before&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;PaperA3ExtraTransverse&lt;/span&gt;

&lt;span class=&#34;nx&#34;&gt;Before&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;PaperLetter&lt;/span&gt;

&lt;span class=&#34;nx&#34;&gt;After&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;PaperA3ExtraTransverse&lt;/span&gt;

&lt;span class=&#34;nx&#34;&gt;After&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Paper&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Size&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;PaperA3ExtraTransverse&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Determine if Paper Size of Worksheet is Automatic with Go</title>
      <link>https://docs.aspose.com/cells/gocpp/determine-if-paper-size-of-worksheet-is-automatic/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/gocpp/determine-if-paper-size-of-worksheet-is-automatic/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Most of the time, the paper size of the worksheet is automatic. When it is automatic, it is often set as &lt;em&gt;Letter&lt;/em&gt;. Sometimes the user sets the paper size of the worksheet according to their requirements. In this case, the paper size is not automatic. You can determine whether the worksheet paper size is automatic by using the &lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells/pagesetup/isautomaticpapersize/&#34;&gt;&lt;strong&gt;PageSetup.IsAutomaticPaperSize&lt;/strong&gt;&lt;/a&gt; property of the &lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells/worksheet/&#34;&gt;&lt;strong&gt;Worksheet&lt;/strong&gt;&lt;/a&gt; class.&lt;/p&gt;
&lt;h2 id=&#34;determine-if-paper-size-of-worksheet-is-automatic&#34;&gt;&lt;strong&gt;Determine if Paper Size of Worksheet is Automatic&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The sample code given below loads the following two Excel files&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;48496681.xlsx&#34;&gt;samplePageSetupIsAutomaticPaperSize-False.xlsx&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;48496682.xlsx&#34;&gt;samplePageSetupIsAutomaticPaperSize-True.xlsx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;and determines whether the paper size of their first worksheet is automatic. In Microsoft Excel, you can check if the paper size is automatic via the Page Setup window as shown in this screenshot.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;determine-if-paper-size-of-worksheet-is-automatic_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-DetermineIfPaperSizeOfWorksheetIsAutomatic.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;console-output&#34;&gt;&lt;strong&gt;Console Output&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Here is the console output of the above sample code when executed with the given sample Excel files.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-go&#34; data-lang=&#34;go&#34;&gt;&lt;span class=&#34;nx&#34;&gt;First&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Worksheet&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;First&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Workbook&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;IsAutomaticPaperSize&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;False&lt;/span&gt;

&lt;span class=&#34;nx&#34;&gt;First&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Worksheet&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Second&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Workbook&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;IsAutomaticPaperSize&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: Insert Background Image to Excel with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/insert-background-image-to-excel/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/insert-background-image-to-excel/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

You can make a worksheet more appealing by adding a picture as a worksheet background. This feature can be quite effective if you have a special corporate graphic that adds a hint of background without obscuring the data on the sheet. You can set a background picture for a sheet using the Aspose.Cells API.
&lt;/div&gt;

&lt;h2 id=&#34;setting-sheet-background-in-microsoft-excel&#34;&gt;&lt;strong&gt;Setting Sheet Background in Microsoft Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set a sheet&amp;rsquo;s background image in Microsoft Excel (for example, Microsoft Excel 2019):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;From the &lt;strong&gt;Page Layout&lt;/strong&gt; menu, find the &lt;strong&gt;Page Setup&lt;/strong&gt; option, and then click the &lt;strong&gt;Background&lt;/strong&gt; option.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select a picture to set the sheet&amp;rsquo;s background.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Setting a sheet background&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&#34;insert-background-to-excel.jpg&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;setting-sheet-background-with-asposecells&#34;&gt;&lt;strong&gt;Setting Sheet Background with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The code below sets a background image using an image from a stream.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-InsertBackgroundImageToExcel.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;related-articles&#34;&gt;Related Articles&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/working-with-background-in-ods-files/&#34;&gt;Working with Background in ODS Files&lt;/a&gt;&lt;br&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: How to Print Excel as Fitted Pages Wide and Tall with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/how-to-print-excel-as-fitted-pages-wide-and-tall/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/how-to-print-excel-as-fitted-pages-wide-and-tall/</guid>
      <description>
        
        
        &lt;h2 id=&#34;introduction&#34;&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The FitToPagesWide and FitToPagesTall settings are used in spreadsheet applications (like Microsoft Excel) to control how a spreadsheet is scaled when printing. These settings help ensure that your printed output fits within a specified number of pages, both horizontally and vertically. Here&amp;rsquo;s a breakdown of each setting:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;FitToPagesWide&lt;/strong&gt;: This setting specifies the number of pages wide that the printed output should fit into. For example, setting FitToPagesWide to 1 means the content will be scaled to fit within a single page width, no matter how wide the spreadsheet is.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;FitToPagesTall&lt;/strong&gt;: This setting specifies the number of pages tall that the printed output should fit into. For example, setting FitToPagesTall to 1 means the content will be scaled to fit within a single page height, regardless of the number of rows.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;why-use-fittopageswide-and-fittopagestall&#34;&gt;&lt;strong&gt;Why Use FitToPagesWide and FitToPagesTall&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Here are some reasons to set FitToPagesWide and FitToPagesTall:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Control Over Printed Layout&lt;/strong&gt;: By specifying the number of pages wide and tall, you can ensure that your printed document is easy to read and well‑organized, without any columns or rows being split awkwardly across pages.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Consistency&lt;/strong&gt;: If you&amp;rsquo;re printing multiple sheets or reports, using these settings helps maintain a consistent format, making it easier to compare and analyze printed documents.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Professional Presentation&lt;/strong&gt;: Properly scaling and fitting content to a specified number of pages can result in a more professional and polished presentation of your data.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;how-to-print-file-as-fitted-pages-wide-and-tall-in-excel&#34;&gt;&lt;strong&gt;How to Print File as Fitted Pages Wide and Tall in Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set the FitToPagesWide and FitToPagesTall settings in Microsoft Excel, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open your Excel workbook and go to the sheet you want to print.&lt;/li&gt;
&lt;li&gt;Go to the &lt;strong&gt;Page Layout&lt;/strong&gt; tab on the Ribbon.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Page Setup&lt;/strong&gt; group, click the small arrow in the bottom‑right corner to open the Page Setup dialog box.&lt;/li&gt;
&lt;li&gt;In the Page Setup dialog box, go to the &lt;strong&gt;Page&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Scaling&lt;/strong&gt;, select the option &lt;strong&gt;Fit to&lt;/strong&gt; and then specify the number of pages wide and tall you want: enter the number of pages wide you want in the first box (Fit to x pages wide) and the number of pages tall you want in the second box (Fit to y pages tall).&lt;/li&gt;
&lt;/ol&gt;
&lt;br&gt;  
&lt;img src=&#34;2.png&#34; width=60% /&gt;  
&lt;ol start=&#34;6&#34;&gt;
&lt;li&gt;Click &lt;strong&gt;OK&lt;/strong&gt; to apply the settings.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;how-to-print-excel-as-fitted-pages-wide-and-tall-using-asposecells&#34;&gt;&lt;strong&gt;How to Print Excel as Fitted Pages Wide and Tall Using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set FitToPagesWide and FitToPagesTall in a specified worksheet: first, load the &lt;a href=&#34;input.xlsx&#34;&gt;sample file&lt;/a&gt;, and then modify the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getfittopagestall/&#34;&gt;&lt;strong&gt;Worksheet.GetFitToPagesTall()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getfittopageswide/&#34;&gt;&lt;strong&gt;Worksheet.GetFitToPagesWide()&lt;/strong&gt;&lt;/a&gt; properties of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; object for the desired worksheet. Here is an example in C++:&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingFitToPages.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;The output result:&lt;/p&gt;
&lt;br&gt;  
&lt;img src=&#34;1.png&#34; width=60% /&gt;  
&lt;h2 id=&#34;how-to-print-worksheet-as-one-page-using-asposecells&#34;&gt;&lt;strong&gt;How to Print Worksheet as One Page Using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To print a worksheet as one page: first, load the &lt;a href=&#34;sample.xlsx&#34;&gt;sample file&lt;/a&gt;, and then set the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/paginatedsaveoptions/getonepagepersheet/&#34;&gt;&lt;strong&gt;PdfSaveOptions.GetOnePagePerSheet()&lt;/strong&gt;&lt;/a&gt; property of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pdfsaveoptions/&#34;&gt;&lt;strong&gt;PdfSaveOptions&lt;/strong&gt;&lt;/a&gt; object. Here is an example in C++:&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingFitToPages-1.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;The output result:&lt;/p&gt;
&lt;br&gt;  
&lt;img src=&#34;3.png&#34; width=60% /&gt;  
&lt;h2 id=&#34;how-to-print-all-columns-of-a-worksheet-in-one-page-using-asposecells&#34;&gt;&lt;strong&gt;How to Print All Columns of a Worksheet in One Page Using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To print all columns of a worksheet on one page: first, load the &lt;a href=&#34;sample.xlsx&#34;&gt;sample file&lt;/a&gt;, and then set the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/paginatedsaveoptions/getallcolumnsinonepagepersheet/&#34;&gt;&lt;strong&gt;PdfSaveOptions.GetAllColumnsInOnePagePerSheet()&lt;/strong&gt;&lt;/a&gt; property of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pdfsaveoptions/&#34;&gt;&lt;strong&gt;PdfSaveOptions&lt;/strong&gt;&lt;/a&gt; object. Here is an example in C++:&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingFitToPages-2.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;The output result:&lt;/p&gt;
&lt;br&gt;  
&lt;img src=&#34;4.png&#34; width=60% /&gt;  
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: How to Set Print Area with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/how-to-set-print-area/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/how-to-set-print-area/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Setting a print area in a document, such as an Excel spreadsheet, helps control what content is included when printing. Here are some reasons to set a print area:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Focus on Specific Data: You can print only the most relevant sections, avoiding unnecessary content.&lt;/li&gt;
&lt;li&gt;Improved Layout: It helps in organizing and fitting the content neatly on the printed pages, avoiding splits or unwanted page breaks.&lt;/li&gt;
&lt;li&gt;Save Resources: By limiting the print area, you can reduce the amount of paper and ink used.&lt;/li&gt;
&lt;li&gt;Professional Presentation: It ensures that only the polished and final version of data is printed, which is particularly important for reports or presentations.&lt;/li&gt;
&lt;li&gt;Consistency: When printing the same document multiple times, having a set print area ensures consistency in the output.&lt;/li&gt;
&lt;/ol&gt;
&lt;br&gt;
Setting a print area is especially useful in larger documents where only a portion needs to be shared or reviewed in printed form.
&lt;h2 id=&#34;how-to-set-print-area-in-excel&#34;&gt;&lt;strong&gt;How to Set Print Area in Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set a print area in Excel, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Select the cells: Click and drag to select the range of cells you want to set as the print area.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open the Page Layout tab: Go to the “Page Layout” tab in the ribbon at the top of the Excel window.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set Print Area: In the “Page Setup” group, click “Print Area”. From the drop‑down menu, select “Set Print Area”.&lt;br&gt;
&lt;br&gt;
&lt;img src=&#34;3.png&#34; width=&#34;60%&#34; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Adding to the Print Area: If you want to add more cells to the existing print area, select the additional cells, go to “Print Area” in the “Page Layout” tab, and choose “Add to Print Area”.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br&gt;
This action will define the selected cells as the print area. When you print the worksheet, only this defined area will be printed.
&lt;h2 id=&#34;how-to-clear-print-area-in-excel&#34;&gt;&lt;strong&gt;How to Clear Print Area in Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To clear the print area in Excel, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the Page Layout tab: Click on the “Page Layout” tab in the ribbon at the top of the Excel window.&lt;/li&gt;
&lt;li&gt;Clear Print Area: In the “Page Setup” group, click “Print Area”. From the drop‑down menu, select “Clear Print Area”.&lt;br&gt;
&lt;br&gt;
&lt;img src=&#34;4.png&#34; width=&#34;60%&#34; /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br&gt;
This action will remove any previously set print area, allowing the entire worksheet to be printed.
&lt;h2 id=&#34;what-happens-after-clearing-the-print-area&#34;&gt;&lt;strong&gt;What Happens After Clearing the Print Area&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Clearing the print area in a spreadsheet application like Excel using Aspose.Cells will result in the entire worksheet being included when you print the document. If a print area is set, only the specified range of cells will be printed. By clearing the print area, you ensure that no specific range is defined, and the default printing behavior, which includes the entire sheet, will take effect.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Default Printing Behavior: The entire worksheet will be considered for printing. This means all cells with data or formatting will be printed.&lt;/li&gt;
&lt;li&gt;No Print Area Limits: Previously defined print area limits will be removed. If there were specific rows and columns designated for printing, they will no longer be constrained to those limits.&lt;/li&gt;
&lt;li&gt;Full Content Print: All content, including headers, footers, and any other data within the worksheet, will be included in the print job.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;how-to-set-the-print-area-using-asposecells&#34;&gt;&lt;strong&gt;How to Set the Print Area Using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set the print area in a specified worksheet: first load the &lt;a href=&#34;input.xlsx&#34;&gt;sample file&lt;/a&gt; and then modify the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintarea/&#34;&gt;&lt;strong&gt;Worksheet.GetPrintArea()&lt;/strong&gt;&lt;/a&gt; property of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; object for the desired worksheet. Setting this property to a range string will set the print area.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintArea.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;The output result:&lt;br&gt;
&lt;br&gt;
&lt;img src=&#34;1.png&#34; width=&#34;60%&#34; /&gt;&lt;/p&gt;
&lt;h2 id=&#34;how-to-clear-the-print-area-using-asposecells&#34;&gt;&lt;strong&gt;How to Clear the Print Area Using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To clear the print area in a specified worksheet: first load the &lt;a href=&#34;input.xlsx&#34;&gt;sample file&lt;/a&gt; and then modify the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprintarea/&#34;&gt;&lt;strong&gt;Worksheet.GetPrintArea()&lt;/strong&gt;&lt;/a&gt; property of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; object for the desired worksheet. Setting this property to an empty string will clear the print area.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintArea-1.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;The output result:&lt;br&gt;
&lt;br&gt;
&lt;img src=&#34;2.png&#34; width=&#34;60%&#34; /&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: How to Set Print Titles with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/how-to-set-print-titles/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/how-to-set-print-titles/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Setting print titles in Excel ensures that specific rows or columns are repeated on every printed page, which is especially useful for large spreadsheets that span multiple pages. Here are some reasons why you might set print titles:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enhanced Readability: Print titles help readers understand the data by keeping headers visible on all pages, making it easier to interpret the information on each page without having to refer back to the first page.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Professional Presentation: Consistently displaying headers or labels on each page creates a more polished and professional appearance for printed documents.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Improved Navigation: For documents with extensive data, repeating the headers on each page allows for quicker navigation and reference, reducing the need to flip back and forth between pages.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reduced Errors: When headers are present on every page, it minimizes the chances of misinterpretation or data entry errors, as users can easily see the context of the data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Consistency: Ensuring that important information, such as column headers or row labels, is always visible maintains consistency and clarity throughout the document.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;how-to-set-print-titles-in-excel&#34;&gt;&lt;strong&gt;How to Set Print Titles in Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set print titles in Excel, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the Page Layout Tab: Click on the &amp;ldquo;Page Layout&amp;rdquo; tab in the ribbon at the top of the Excel window.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Access Print Titles: In the &amp;ldquo;Page Setup&amp;rdquo; group, click on &amp;ldquo;Print Titles&amp;rdquo;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set Rows to Repeat: In the &amp;ldquo;Page Setup&amp;rdquo; dialog box, go to the &amp;ldquo;Sheet&amp;rdquo; tab. In the &amp;ldquo;Print titles&amp;rdquo; section, specify the rows to repeat at the top by clicking the box next to &amp;ldquo;Rows to repeat at top&amp;rdquo; and selecting the row(s) you want to repeat.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set Columns to Repeat (if needed): Similarly, you can specify the columns to repeat at the left by clicking the box next to &amp;ldquo;Columns to repeat at left&amp;rdquo; and selecting the column(s) you want to repeat.
&lt;br&gt;
&lt;img src=&#34;3.png&#34; width=60% /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Confirm and Print: Click &amp;ldquo;OK&amp;rdquo; to apply the settings. When you print the worksheet, the specified rows or columns will appear on every printed page.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;how-to-clear-print-titles-in-excel&#34;&gt;&lt;strong&gt;How to Clear Print Titles in Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To clear print titles in Excel, you need to remove the rows or columns that are set to repeat on every printed page. Here’s how to do it:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the Page Layout Tab: Click on the &amp;ldquo;Page Layout&amp;rdquo; tab in the ribbon at the top of the Excel window.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Access Print Titles: In the &amp;ldquo;Page Setup&amp;rdquo; group, click on &amp;ldquo;Print Titles&amp;rdquo;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Clear Print Titles: In the &amp;ldquo;Page Setup&amp;rdquo; dialog box, go to the &amp;ldquo;Sheet&amp;rdquo; tab. Clear the text boxes for &amp;ldquo;Rows to repeat at top&amp;rdquo; and &amp;ldquo;Columns to repeat at left&amp;rdquo; by deleting any content inside them.
&lt;br&gt;
&lt;img src=&#34;4.png&#34; width=60% /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Confirm and Close: Click &amp;ldquo;OK&amp;rdquo; to apply the changes.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;how-to-set-print-titles-using-asposecells&#34;&gt;&lt;strong&gt;How to Set Print Titles Using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set print titles in a specified worksheet: First, load the &lt;a href=&#34;input.xlsx&#34;&gt;sample file&lt;/a&gt;, and then you need to modify the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinttitlerows/&#34;&gt;&lt;strong&gt;Worksheet.GetPrintTitleRows()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinttitlecolumns/&#34;&gt;&lt;strong&gt;Worksheet.GetPrintTitleColumns()&lt;/strong&gt;&lt;/a&gt; properties of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; object for the desired worksheet. Setting these properties to a range string will set the print titles.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintTitles.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;The output result:
&lt;br&gt;
&lt;img src=&#34;1.png&#34; width=60% /&gt;&lt;/p&gt;
&lt;h2 id=&#34;how-to-clear-print-titles-using-asposecells&#34;&gt;&lt;strong&gt;How to Clear Print Titles Using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To clear the print titles in a specified worksheet: First, load the &lt;a href=&#34;input.xlsx&#34;&gt;sample file&lt;/a&gt;, and then you need to modify the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinttitlerows/&#34;&gt;&lt;strong&gt;Worksheet.GetPrintTitleRows()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/getprinttitlecolumns/&#34;&gt;&lt;strong&gt;Worksheet.GetPrintTitleColumns()&lt;/strong&gt;&lt;/a&gt; properties of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/pagesetup/&#34;&gt;&lt;strong&gt;PageSetup&lt;/strong&gt;&lt;/a&gt; object for the desired worksheet. Setting these properties to an empty string will clear the print titles.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SettingPrintTitles-1.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;The output result:
&lt;br&gt;
&lt;img src=&#34;2.png&#34; width=60% /&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Calculate Page Setup Scaling Factor with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/calculate-page-setup-scaling-factor/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/calculate-page-setup-scaling-factor/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

When you set Page Setup Scaling using &lt;strong&gt;Fit to n page(s) wide by m tall&lt;/strong&gt; option, Microsoft Excel calculates the Page Setup Scaling Factor. You can calculate the same value using &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/getpagescale/&#34;&gt;&lt;strong&gt;SheetRender.GetPageScale()&lt;/strong&gt;&lt;/a&gt; property. This property returns a double value which can be converted to a percentage value. For example, if it returns 0.5, then it means that the scaling factor is 50%.
&lt;/div&gt;

&lt;p&gt;The following sample code illustrates how to calculate page setup scaling factor using &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/getpagescale/&#34;&gt;&lt;strong&gt;SheetRender.GetPageScale()&lt;/strong&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-CalculatePageSetupScalingFactor.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
