<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Print and Preview Workbook with Golang via C&#43;&#43;</title>
    <link>https://docs.aspose.com/cells/go-cpp/workbook-and-worksheet-print-preview/</link>
    <description>Recent content in Print and Preview Workbook 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/workbook-and-worksheet-print-preview/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Configuring Fonts for Rendering Spreadsheets with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/configuring-fonts-for-rendering-spreadsheets/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/configuring-fonts-for-rendering-spreadsheets/</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;Aspose.Cells APIs provide the facility to render spreadsheets in image formats as well as convert them to PDF and XPS formats. To maximize conversion fidelity, it is necessary that the fonts used in the spreadsheet are available in the operating system&amp;rsquo;s default font directory. If the required fonts are not present, Aspose.Cells APIs will attempt to substitute the required fonts with the ones available.&lt;/p&gt;
&lt;h2 id=&#34;selection-of-fonts&#34;&gt;&lt;strong&gt;Selection of Fonts&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Below is the process that Aspose.Cells APIs follow behind the scenes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The API tries to find the fonts on the file system matching the exact font name used in the spreadsheet.&lt;/li&gt;
&lt;li&gt;If the API cannot find the fonts with the exact same name, it attempts to use the default font specified under the Workbook&amp;rsquo;s &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/style/getfont/&#34;&gt;&lt;strong&gt;DefaultStyle.Font&lt;/strong&gt;&lt;/a&gt; property.&lt;/li&gt;
&lt;li&gt;If the API cannot locate the font defined under the workbook&amp;rsquo;s &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/style/getfont/&#34;&gt;&lt;strong&gt;DefaultStyle.Font&lt;/strong&gt;&lt;/a&gt; property, it attempts to use the font specified under &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/paginatedsaveoptions/deletepaginatedsaveoptions/&#34;&gt;&lt;em&gt;&lt;em&gt;PdfSaveOptions.PaginatedSaveOptions(PaginatedSaveOptions_Impl&lt;/em&gt; impl)&lt;/em&gt;*&lt;/a&gt; or &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getdefaultfont/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.DefaultFont&lt;/strong&gt;&lt;/a&gt; property.&lt;/li&gt;
&lt;li&gt;If the API cannot locate the font defined under &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/paginatedsaveoptions/deletepaginatedsaveoptions/&#34;&gt;&lt;em&gt;&lt;em&gt;PdfSaveOptions.PaginatedSaveOptions(PaginatedSaveOptions_Impl&lt;/em&gt; impl)&lt;/em&gt;*&lt;/a&gt; or &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getdefaultfont/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.DefaultFont&lt;/strong&gt;&lt;/a&gt; property, it attempts to use the font specified under &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_getdefaultfontname/&#34;&gt;&lt;strong&gt;FontConfigs.DefaultFontName&lt;/strong&gt;&lt;/a&gt; property.&lt;/li&gt;
&lt;li&gt;If the API cannot locate the font defined under &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_getdefaultfontname/&#34;&gt;&lt;strong&gt;FontConfigs.DefaultFontName&lt;/strong&gt;&lt;/a&gt; property, it attempts to select the most suitable fonts from all of the available fonts.&lt;/li&gt;
&lt;li&gt;Finally, if the API cannot find any fonts on the file system, it renders the spreadsheet using Arial.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;set-custom-font-folders&#34;&gt;&lt;strong&gt;Set Custom Font Folders&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells APIs search the operating system&amp;rsquo;s default font directory for the required fonts. If the required fonts are not available in the system&amp;rsquo;s font directory, the APIs search through custom (user‑defined) directories. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/&#34;&gt;&lt;strong&gt;FontConfigs&lt;/strong&gt;&lt;/a&gt; class provides several ways to set custom font directories, as detailed below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_setfontfolder/&#34;&gt;&lt;strong&gt;FontConfigs.SetFontFolder&lt;/strong&gt;&lt;/a&gt;: This method is useful if there is only one folder to be set.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_setfontfolders/&#34;&gt;&lt;strong&gt;FontConfigs.SetFontFolders&lt;/strong&gt;&lt;/a&gt;: This method is useful when the fonts reside in multiple folders, and the user wishes to set all folders separately rather than combining all fonts in a single folder.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_setfontsources/&#34;&gt;&lt;strong&gt;FontConfigs.SetFontSources&lt;/strong&gt;&lt;/a&gt;: This mechanism is useful when the user wishes to load fonts from multiple folders, a single font file, or font data from an array of bytes.&lt;/li&gt;
&lt;/ol&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Both &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_setfontfolder/&#34;&gt;&lt;strong&gt;FontConfigs.SetFontFolder&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_setfontfolders/&#34;&gt;&lt;strong&gt;FontConfigs.SetFontFolders&lt;/strong&gt;&lt;/a&gt; methods accept a Boolean‑type second parameter. Passing &lt;strong&gt;true&lt;/strong&gt; as the second parameter will direct the Aspose.Cells APIs to search the subfolders for the font files.
&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-ConfiguringFonts.go&#34;&gt;&lt;/script&gt;



&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Please use any of the above‑mentioned methods at the start of the application, that is, before invoking any other objects of Aspose.Cells APIs.
&lt;/div&gt;



&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

If all of the above‑mentioned methods are used to set the font sources, only the last settings will take effect.
&lt;/div&gt;

&lt;h2 id=&#34;font-substitution-mechanism&#34;&gt;&lt;strong&gt;Font Substitution Mechanism&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells APIs also provide the ability to specify substitute fonts for rendering purposes. This mechanism is helpful when a required font is not available on the machine where the conversion has to take place. Users can provide a list of font names as an alternative to the originally required font. To achieve this, the Aspose.Cells APIs have exposed the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_setfontsubstitutes/&#34;&gt;&lt;strong&gt;FontConfigs.SetFontSubstitutes&lt;/strong&gt;&lt;/a&gt; method, which accepts two parameters. The first parameter is of type &lt;strong&gt;string&lt;/strong&gt;, which should be the name of the font that needs to be substituted. The second parameter is an array of type &lt;strong&gt;string&lt;/strong&gt;. Users can provide a list of font names as a substitution for the original font name (specified in the first parameter).&lt;/p&gt;
&lt;p&gt;Here is a simple usage scenario:&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-ConfiguringFonts-1.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;information-gathering&#34;&gt;&lt;strong&gt;Information Gathering&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;In addition to the above‑mentioned methods, the Aspose.Cells APIs also provide means to gather information on what sources and substitutions have been set:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_getfontsources/&#34;&gt;&lt;strong&gt;FontConfigs.GetFontSources&lt;/strong&gt;&lt;/a&gt; method returns an array of type &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontsourcebase/&#34;&gt;&lt;strong&gt;FontSourceBase&lt;/strong&gt;&lt;/a&gt; containing the list of specified font sources. If no sources have been set, the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_getfontsources/&#34;&gt;&lt;strong&gt;FontConfigs.GetFontSources&lt;/strong&gt;&lt;/a&gt; method will return an empty array.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_getfontsubstitutes/&#34;&gt;&lt;strong&gt;FontConfigs.GetFontSubstitutes&lt;/strong&gt;&lt;/a&gt; method accepts a parameter of type &lt;strong&gt;string&lt;/strong&gt;, allowing you to specify the font name for which substitution has been set. If no substitution has been set for the specified font name, the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fontconfigs/fontconfigs_getfontsubstitutes/&#34;&gt;&lt;strong&gt;FontConfigs.GetFontSubstitutes&lt;/strong&gt;&lt;/a&gt; method will return null.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;advanced-topics&#34;&gt;&lt;strong&gt;Advanced Topics&lt;/strong&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/set-default-font-while-rendering-spreadsheet-to-images/&#34;&gt;Set Default Font while rendering spreadsheet to images&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/set-defaultfont-property-of-pdfsaveoptions-and-imageorprintoptions-to-have-priority/&#34;&gt;Set DefaultFont property of PdfSaveOptions and ImageOrPrintOptions to have priority&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/supported-font-formats/&#34;&gt;Supported Font Formats&lt;/a&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: Convert Worksheet to Image - Remove Whitespace around Data with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/convert-worksheet-to-image-remove-whitespace-around-data/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/convert-worksheet-to-image-remove-whitespace-around-data/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes, you need to present worksheet images in applications or web pages. For example, you might need to insert images into a Word document, a PDF file, a PowerPoint presentation, or some other document. Basically, you want to render a worksheet as an image so that it can be pasted into other applications. Aspose.Cells allows you to convert Microsoft Excel worksheets to images.
&lt;/div&gt;

&lt;h2 id=&#34;remove-whitespace-around-data&#34;&gt;&lt;strong&gt;Remove Whitespace around Data&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt; API converts a worksheet to an image file with any specified attributes, for example, image format, paginated sheets, etc. Several image formats are supported, including BMP, GIF, JPG, TIFF, and EMF.&lt;/p&gt;
&lt;p&gt;When you use the sheet‑to‑image feature, the output image has whitespace—that is, a border—around it by default. You can remove this by setting the top, bottom, left, and right page‑setup margins for the source worksheet to 0 and specifying the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt; attributes accordingly.&lt;/p&gt;
&lt;p&gt;The following code snippet removes the whitespace around the data in the output image.&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-ConvertWorksheetToImageRemoveWhitespaceAroundData.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: Specify Individual or Private Set of Fonts for Workbook Rendering with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/specify-individual-or-private-set-of-fonts-for-workbook-rendering/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/specify-individual-or-private-set-of-fonts-for-workbook-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;Generally, you specify the fonts directory or a list of fonts for all workbooks, but sometimes you need to specify an individual or private set of fonts for your workbooks. Aspose.Cells provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/individualfontconfigs/&#34;&gt;&lt;strong&gt;IndividualFontConfigs&lt;/strong&gt;&lt;/a&gt; class that can be used to specify the individual or private set of fonts for your workbook.&lt;/p&gt;
&lt;h2 id=&#34;specify-individual-or-private-set-of-fonts-for-workbook-rendering&#34;&gt;&lt;strong&gt;Specify Individual or Private Set of Fonts for Workbook Rendering&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code loads the &lt;a href=&#34;67338268.xlsx&#34;&gt;sample Excel file&lt;/a&gt; with its individual or private set of fonts, which are specified using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/individualfontconfigs/&#34;&gt;&lt;strong&gt;IndividualFontConfigs&lt;/strong&gt;&lt;/a&gt; class. Please see the &lt;a href=&#34;67338271.zip&#34;&gt;sample font&lt;/a&gt; used inside the code as well as the &lt;a href=&#34;67338269.pdf&#34;&gt;output PDF&lt;/a&gt; generated by it. The following screenshot shows how the output PDF looks if the font is found successfully.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;specify-individual-or-private-set-of-fonts-for-workbook-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;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SpecifyIndividualOrPrivateSetOfFontsForWorkbookRendering.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: Export Range of Cells in a Worksheet to Image with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/export-range-of-cells-in-a-worksheet-to-image/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/export-range-of-cells-in-a-worksheet-to-image/</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;You can make an image of a worksheet using Aspose.Cells. However, sometimes you need to export only a range of cells in a worksheet to an image. This article explains how to achieve this.&lt;/p&gt;
&lt;h2 id=&#34;export-range-of-cells-in-a-worksheet-to-image&#34;&gt;&lt;strong&gt;Export Range of Cells in a Worksheet to Image&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To take an image of a range, set the print area to the desired range and then set all margins to 0. Also set &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getonepagepersheet/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetOnePagePerSheet()&lt;/strong&gt;&lt;/a&gt; to &lt;strong&gt;true&lt;/strong&gt;. The following code takes an image of the range D8:G16. Below is a screenshot of the &lt;a href=&#34;47153160.xlsx&#34;&gt;sample Excel file&lt;/a&gt; used in the code. You can try the code with any Excel file.&lt;/p&gt;
&lt;h2 id=&#34;screenshot-of-sample-excel-file-and-its-exported-image&#34;&gt;&lt;strong&gt;Screenshot of Sample Excel File and its Exported Image&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src=&#34;export-range-of-cells-in-a-worksheet-to-image_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Executing the code creates an image of the range D8:G16 only.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src=&#34;Output-Image.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&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-ExportRangeOfCellsInAWorksheetToImage.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: Page Setup and Printing Options with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/page-setup-and-printing-options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/page-setup-and-printing-options/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Sometimes, developers need to configure page setup and print settings to control the printing process. Page setup and print settings offer various options and are fully supported in Aspose.Cells.&lt;/p&gt;
&lt;p&gt;This article shows how to create a console application in Visual Studio, and apply page setup and printing options to a worksheet with a few simple lines of code using the Aspose.Cells API.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;working-with-page-and-print-settings&#34;&gt;&lt;strong&gt;Working with Page and Print Settings&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;For this example, we created a workbook in Microsoft Excel and used Aspose.Cells to set page setup and print options.&lt;/p&gt;
&lt;h3 id=&#34;using-asposecells-to-set-page-setup-options&#34;&gt;&lt;strong&gt;Using Aspose.Cells to set Page Setup Options&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;First create a simple worksheet in Microsoft Excel. Then apply page setup options to it. Executing the code changes the Page Setup options as in the screenshot 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;Output file.&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;&lt;img src=&#34;page-setup-and-printing-options_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;ol&gt;
&lt;li&gt;Create a worksheet with some data in Microsoft Excel:
&lt;ol&gt;
&lt;li&gt;Open a new workbook in Microsoft Excel.&lt;/li&gt;
&lt;li&gt;Add some data.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Set page setup options:&lt;br&gt;
Apply page setup options to the file. Below is a screenshot of the default options, before the new options are applied.&lt;/li&gt;
&lt;/ol&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Default page setup options.&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;&lt;img src=&#34;page-setup-and-printing-options_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;Download and install Aspose.Cells:
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://downloads.aspose.com/cells/go-cpp/&#34;&gt;Download&lt;/a&gt; Aspose.Cells for Go via C++.&lt;/li&gt;
&lt;li&gt;Install it on your development computer.&lt;br&gt;
All Aspose components, when installed, work in evaluation mode. The evaluation mode has no time limit and it only injects watermarks into produced documents.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Create a project:
&lt;ol&gt;
&lt;li&gt;Start Visual Studio.&lt;/li&gt;
&lt;li&gt;Create a new console application.&lt;br&gt;
This example will show a C++ console application.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Add references:
&lt;ol&gt;
&lt;li&gt;This example uses Aspose.Cells, so add a reference to that component to the project. For example:&lt;br&gt;
…\Program Files\Aspose\Aspose.Cells\Bin\Net1.0\Aspose.Cells.dll&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Write the application that invokes the API:&lt;/li&gt;
&lt;/ol&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-PageSetupAndPrintingOptions.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;setting-print-options&#34;&gt;&lt;strong&gt;Setting Print Options&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Page setup settings also provide several print options (also called sheet options) that allow users to control how worksheet pages are printed. They allow users to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Select a specific print area of 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;Achieve 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;The example that follows applies print options to the file created in the example above (PageSetup.xls). The screenshot below shows the default print options before new options are applied.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Input document&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;&lt;img src=&#34;page-setup-and-printing-options_3.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Executing the code changes the print options.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Output file&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;&lt;img src=&#34;page-setup-and-printing-options_4.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&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-PageSetupAndPrintingOptions-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: Converting Worksheet to Image and Worksheet to Image by Page with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/converting-worksheet-to-image-and-worksheet-to-image-by-page/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/converting-worksheet-to-image-and-worksheet-to-image-by-page/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;This document is designed to provide developers with a detailed understanding of how to convert a worksheet to an image file and a worksheet with multiple pages to an image file per page.&lt;/p&gt;
&lt;p&gt;Sometimes, you might need to present worksheets as images, for example, to use them in applications or web pages. You might need to insert the images into a Word document, a PDF file, a PowerPoint presentation, or use them in some other scenario. &lt;strong&gt;Simply put, you want to render the worksheet as an image.&lt;/strong&gt; Aspose.Cells supports converting worksheets in Microsoft Excel files to images. Also, Aspose.Cells supports converting a workbook to multiple image files, one per page.&lt;/p&gt;
&lt;p&gt;You might use Office Automation to achieve this, but Office automation has its own drawbacks. There are several reasons and issues involved: for example, security, stability, scalability/speed, price, and features. In short, there are many reasons, but the main one is that Microsoft themselves strongly recommends against Office automation.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;using-asposecells-to-convert-worksheet-to-image-file&#34;&gt;&lt;strong&gt;Using Aspose.Cells to Convert Worksheet to Image File&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;This article shows how to create a console application in Visual Studio, convert a worksheet to an image, and convert a worksheet into a separate image for each page with a few simple lines of code using the Aspose.Cells API.&lt;/p&gt;
&lt;p&gt;You need to include the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/aspose.cells.rendering/&#34;&gt;&lt;strong&gt;Aspose.Cells.Rendering&lt;/strong&gt;&lt;/a&gt; namespace in your program/project. It has several valuable classes, such as &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbookrender/&#34;&gt;&lt;strong&gt;WorkbookRender&lt;/strong&gt;&lt;/a&gt;, and so on. The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/&#34;&gt;&lt;strong&gt;Aspose.Cells.Rendering.SheetRender&lt;/strong&gt;&lt;/a&gt; class represents a worksheet for rendering images and has an overloaded &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/toimage_int_string/&#34;&gt;&lt;strong&gt;ToImage&lt;/strong&gt;&lt;/a&gt; method that can convert a worksheet to image files directly with any attributes or options set. It can return a &lt;code&gt;System.Drawing.Bitmap&lt;/code&gt; object, and you can save an image file to the disk/stream. Several image formats are supported, for example, BMP, PNG, GIF, JPG, JPEG, TIFF, EMF, and others.&lt;/p&gt;
&lt;p&gt;This article explains how to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Convert a worksheet to an image&lt;/li&gt;
&lt;li&gt;Convert every page in a worksheet to an image&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The task shows how to use Aspose.Cells to convert a worksheet from a template workbook to an image file.&lt;/p&gt;
&lt;h3 id=&#34;setup-project&#34;&gt;&lt;strong&gt;Setup Project&lt;/strong&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;First, &lt;a href=&#34;https://downloads.aspose.com/cells/go-cpp/&#34;&gt;download Aspose.Cells for Go via C++&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Install it on your development computer. All &lt;a href=&#34;http://www.aspose.com/&#34;&gt;Aspose&lt;/a&gt; components, when installed, work in evaluation mode. The evaluation mode has no time limit and it only injects watermarks into produced documents. Now start Visual Studio and create a new console application. This example uses a C++ console application. Add a reference to Aspose.Cells in the created project.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;convert-worksheet-to-image-file&#34;&gt;&lt;strong&gt;Convert Worksheet to Image File&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;I created a new workbook in Microsoft Excel and added some data in the first worksheet: &lt;strong&gt;Testbook.xlsx&lt;/strong&gt; (1 worksheet). Next, convert the template file’s worksheet Sheet1 to an image file called SheetImage.jpg.&lt;/p&gt;
&lt;p&gt;Following is the code used by the component to accomplish the task. It converts Sheet1 in &lt;strong&gt;Testbook.xlsx&lt;/strong&gt; to an image file to demonstrate how easy this conversion is.&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-ConvertingWorksheetToImageAndWorksheetToImageByPage.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;using-asposecells-to-convert-worksheet-to-image-file-by-page&#34;&gt;&lt;strong&gt;Using Aspose.Cells to Convert Worksheet to Image File by Page&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;This example shows how to use Aspose.Cells to convert a worksheet from a template workbook that has several pages to one image file per page.&lt;/p&gt;
&lt;h3 id=&#34;convert-worksheet-to-image-by-page&#34;&gt;&lt;strong&gt;Convert Worksheet to Image by Page&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;I created a new workbook in Microsoft Excel and added some data in the first worksheet: &lt;strong&gt;Testbook2.xlsx&lt;/strong&gt; (1 worksheet).&lt;/p&gt;
&lt;p&gt;Now, convert the template file&amp;rsquo;s worksheet Sheet1 to image files (one file per page). As I already created the console application to perform the copy task, I will skip those console application creation steps and directly move to the worksheet conversion steps.&lt;/p&gt;
&lt;p&gt;Following is the code used by the component to accomplish the task. It converts Sheet1 in &lt;strong&gt;Testbook2.xlsx&lt;/strong&gt; to image files by page.&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-ConvertingWorksheetToImageAndWorksheetToImageByPage-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: Converting Worksheet to Image using ImageOrPrint Options with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/converting-worksheet-to-image-using-imageorprint-options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/converting-worksheet-to-image-using-imageorprint-options/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

This document is designed to provide a detailed understanding of how to convert a worksheet to an image file and apply different image and print options for the image, such as resolution, TIFF compression, image format, and page quality.
&lt;/div&gt;

&lt;h2 id=&#34;saving-worksheets-to-images---different-approaches&#34;&gt;&lt;strong&gt;Saving Worksheets to Images - Different Approaches&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes, you might require presenting your worksheets as a pictorial representation. You may need to present the worksheet images in your applications or web pages, insert them into a Word document, a PDF file, a PowerPoint presentation, or use them in some other scenario. Simply put, you want a worksheet rendered as an image so that you can use it elsewhere. Aspose.Cells supports converting worksheets in Excel files to images. Additionally, Aspose.Cells supports setting different options like image format, resolution (both vertical and horizontal), image quality, and other image and print options.&lt;/p&gt;
&lt;p&gt;You might consider Office Automation, but it has its own drawbacks. There are several reasons and issues involved, such as security, stability, scalability, speed, price, and features. In short, there are many reasons, with the top one being that Microsoft itself strongly recommends against Office automation from software solutions.&lt;/p&gt;
&lt;p&gt;This article shows how to create a console application in Visual Studio, perform the conversion of a worksheet to an image using a few simple lines of code with different image and print options using Aspose.Cells API.&lt;/p&gt;
&lt;p&gt;You need to include the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/aspose.cells.rendering/&#34;&gt;&lt;strong&gt;Aspose.Cells.Rendering&lt;/strong&gt;&lt;/a&gt; namespace in your program/project. It has several valuable classes, for example, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbookrender/&#34;&gt;&lt;strong&gt;WorkbookRender&lt;/strong&gt;&lt;/a&gt;, etc.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/&#34;&gt;&lt;strong&gt;Aspose.Cells.Rendering.SheetRender&lt;/strong&gt;&lt;/a&gt; class represents a worksheet to render images for the worksheet. It has an overloaded &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/sheetrender/toimage_int_string/&#34;&gt;&lt;strong&gt;ToImage&lt;/strong&gt;&lt;/a&gt; method that can directly convert a worksheet to image file(s) specified with your desired attributes or options. It can return a bitmap object, and you can save an image file to the disk/stream. Several image formats are supported, such as BMP, PNG, GIF, JPEG, TIFF, EMF, and so on.&lt;/p&gt;
&lt;h2 id=&#34;using-asposecells-to-convert-worksheet-to-image-using-imageorprint-options&#34;&gt;&lt;strong&gt;Using Aspose.Cells to Convert Worksheet to Image using ImageOrPrint Options&lt;/strong&gt;&lt;/h2&gt;
&lt;h3 id=&#34;creating-a-template-workbook-in-microsoft-excel&#34;&gt;&lt;strong&gt;Creating a Template Workbook in Microsoft Excel&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;I created a new workbook in MS Excel and added some data in the first worksheet. Now, I will convert the template file’s worksheet “Sheet1” to an image file “SheetImage.tiff” and will apply different image options like horizontal and vertical resolutions, TIFF compression, etc.&lt;/p&gt;
&lt;h3 id=&#34;download-and-install-asposecells&#34;&gt;&lt;strong&gt;Download and Install Aspose.Cells&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;First, you need to &lt;a href=&#34;https://downloads.aspose.com/cells/go-cpp/&#34;&gt;download&lt;/a&gt; Aspose.Cells for Go via C++. Install it on your development computer. All &lt;a href=&#34;http://www.aspose.com/&#34;&gt;Aspose&lt;/a&gt; components, when installed, work in evaluation mode. The evaluation mode has no time limit and only injects watermarks into produced documents.&lt;/p&gt;
&lt;h3 id=&#34;create-a-project&#34;&gt;&lt;strong&gt;Create a Project&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Start Visual Studio and create a new console application. This example will show a C++ console application.&lt;/p&gt;
&lt;h3 id=&#34;add-references&#34;&gt;&lt;strong&gt;Add References&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;This project will use Aspose.Cells. So, you have to add a reference to the Aspose.Cells component in your project. For example, add a reference to &lt;code&gt;...\Program Files\Aspose\Aspose.Cells for Go via C++\Bin\Aspose.Cells.lib&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;convert-worksheet-to-an-image-file&#34;&gt;&lt;strong&gt;Convert Worksheet to an Image File&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-ConvertingWorksheetToImageUsingImageorprintOptions.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;conversion-options&#34;&gt;&lt;strong&gt;Conversion Options&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;It is possible to save specific pages to an image. The following code converts the first and second worksheets in a workbook to JPG images.&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-ConvertingWorksheetToImageUsingImageorprintOptions-1.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;image-conversion-using-workbookrender&#34;&gt;&lt;strong&gt;Image Conversion using WorkbookRender&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;A TIFF image can contain more than one frame. You can save the whole workbook to a single TIFF image with multiple frames or pages:&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-ConvertingWorksheetToImageUsingImageorprintOptions-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: Output Blank Page when there is Nothing to Print with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/output-blank-page-when-there-is-nothing-to-print/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/output-blank-page-when-there-is-nothing-to-print/</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;If the sheet is empty, then Aspose.Cells will not print anything when you export the worksheet to an image. You can change this behavior by using &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getoutputblankpagewhennothingtoprint/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetOutputBlankPageWhenNothingToPrint()&lt;/strong&gt;&lt;/a&gt; property. When you set it &lt;strong&gt;to&lt;/strong&gt; true, it will print the blank page.&lt;/p&gt;
&lt;h2 id=&#34;output-blank-page-when-there-is-nothing-to-print&#34;&gt;&lt;strong&gt;Output Blank Page when there is Nothing to Print&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code creates an empty workbook &lt;strong&gt;that&lt;/strong&gt; has an empty worksheet and renders the empty worksheet to an image after setting the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getoutputblankpagewhennothingtoprint/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetOutputBlankPageWhenNothingToPrint()&lt;/strong&gt;&lt;/a&gt; property &lt;strong&gt;to&lt;/strong&gt; true. Consequently, it generates a blank page, &lt;strong&gt;as&lt;/strong&gt; there is nothing to print, which you can see in the image below.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;output-blank-page-when-there-is-nothing-to-print_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;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-OutputBlankPageWhenThereIsNothingToPrint.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: Convert Excel to High‑Resolution Image with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/convert-excel-to-high-resolution-image/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/convert-excel-to-high-resolution-image/</guid>
      <description>
        
        
        &lt;p&gt;With the increasing prevalence of high‑resolution screens, images generated at the default 96 DPI often appear blurry and unclear. To ensure clarity on high‑resolution screens, it&amp;rsquo;s essential to generate images at a higher DPI. Aspose.Cells offers functionality to set &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/gethorizontalresolution/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetHorizontalResolution()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getverticalresolution/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetVerticalResolution()&lt;/strong&gt;&lt;/a&gt;, allowing you to create high‑quality images from Excel files that look sharp on high‑resolution displays.&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-ConvertExcelToHighResolutionImage.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: Generate Thumbnail of the Worksheet with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/generate-thumbnail-of-the-worksheet/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/generate-thumbnail-of-the-worksheet/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

It can be useful to generate thumbnails from worksheets. A thumbnail is a small image that can be pasted into a Word document or a PowerPoint presentation to give a preview of what&amp;rsquo;s on the worksheet. It can be added to a webpage with a link to download the original document and has a host of other uses.
&lt;/div&gt;

&lt;p&gt;Aspose.Cells for Go via C++ allows you to output worksheets to image files, making thumbnail generation straightforward. The following sample code demonstrates how to output worksheets to image files using C++.&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-GenerateThumbnailOfTheWorksheet.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: Render Sequence of Pages using PageIndex and PageCount Properties of ImageOrPrintOptions with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions/</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;You can render a sequence of pages of your Excel file to images by using Aspose.Cells with &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getpageindex/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetPageIndex()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getpagecount/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetPageCount()&lt;/strong&gt;&lt;/a&gt; properties. These properties are useful when there are many, e.g., thousands of pages in your worksheet, but you want to render only some of them. This will not only save processing time but also reduce memory consumption of the rendering process.&lt;/p&gt;
&lt;h2 id=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions&#34;&gt;&lt;strong&gt;Render Sequence of Pages using PageIndex and PageCount Properties of ImageOrPrintOptions&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code loads the &lt;a href=&#34;55541781.xlsx&#34;&gt;sample Excel file&lt;/a&gt; and renders only pages 4, 5, 6, and 7 using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getpageindex/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetPageIndex()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/getpagecount/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetPageCount()&lt;/strong&gt;&lt;/a&gt; properties. Here are the rendered pages generated by the code.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_1&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_2&#34; alt=&#34;todo:image_alt_text&#34;&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;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_3&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_4&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&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-RenderSequenceOfPagesUsingPageindexAndPagecountPropertiesOfImageorprintoptions.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: Extract Images from Worksheets using ImageOrPrintOptions with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/extract-images-from-worksheets-using-imageorprintoptions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/extract-images-from-worksheets-using-imageorprintoptions/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Microsoft Excel users can add images to spreadsheets. With Aspose.Cells, it&amp;rsquo;s possible to read images from Microsoft Excel files and save them to a local drive. This article shows how.
&lt;/div&gt;

&lt;p&gt;The sample code below shows how to extract images from an Excel file and save them.&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-ExtractImagesFromWorksheetsUsingImageorprintoptions.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: Create Transparent Image of Excel Worksheet with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/create-transparent-image-of-excel-worksheet/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/create-transparent-image-of-excel-worksheet/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes, you need to generate an image of your worksheet as a transparent image. You want to apply transparency to all cells that have no fill colors. Aspose.Cells provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/gettransparent/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.GetTransparent()&lt;/strong&gt;&lt;/a&gt; property to apply transparency to the worksheet image. When this property is &lt;strong&gt;false&lt;/strong&gt;, cells with no fill colors are drawn in white, and when it is &lt;strong&gt;true&lt;/strong&gt;, cells with no fill colors are drawn as transparent.
&lt;/div&gt;

&lt;p&gt;In the following worksheet image, transparency has not been applied. The cells with no fill colors are drawn in white.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Output without transparency: the cell background is white&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;&lt;img src=&#34;create-transparent-image-of-excel-worksheet_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;While in the following worksheet image, transparency has been applied. The cells with no fill colors are transparent.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;strong&gt;Output with transparency enabled&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;&lt;img src=&#34;create-transparent-image-of-excel-worksheet_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The following sample code generates a transparent image from an Excel worksheet.&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-CreateTransparentImageOfExcelWorksheet.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: Export Worksheet or Chart into Image with Desired Width and Height with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/export-worksheet-or-chart-into-image-with-desired-width-and-height/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/export-worksheet-or-chart-into-image-with-desired-width-and-height/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

You can use Aspose.Cells to export your worksheet or chart into an image with the desired width and height. It provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/imageorprintoptions/setdesiredsize/&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.SetDesiredSize()&lt;/strong&gt;&lt;/a&gt; method to set the desired width and height of the exported image. The width and height are specified &lt;strong&gt;in pixels&lt;/strong&gt;.
&lt;/div&gt;

&lt;p&gt;The following code exports the worksheet into an image with 400×400 size.&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-ExportWorksheetOrChartIntoImageWithDesiredWidthAndHeight.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: Render Worksheet to Graphic Context with Go</title>
      <link>https://docs.aspose.com/cells/gocpp/render-worksheet-to-graphic-context/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/gocpp/render-worksheet-to-graphic-context/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Aspose.Cells can now render a worksheet to a graphic context. The graphic context can be anything such as an image file, a screen, or a printer. Please use one of the following two methods to render a worksheet to a graphic context.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells.rendering/sheetrender/toimage/&#34;&gt;&lt;em&gt;&lt;em&gt;SheetRender::ToImage(int pageIndex, Graphics&lt;/em&gt; g, float x, float y)&lt;/em&gt;*&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells.rendering/sheetrender/toimage/&#34;&gt;&lt;em&gt;&lt;em&gt;SheetRender::ToImage(int pageIndex, Graphics&lt;/em&gt; g, float x, float y, float width, float height)&lt;/em&gt;*&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;p&gt;The following code illustrates how to use Aspose.Cells to render a worksheet to a graphic context. Once you execute the code, it will render the entire worksheet, fill the remaining empty space with a blue color in the graphics context, and save the image as the &lt;strong&gt;OutputImage_out.png&lt;/strong&gt; file. You can use any source Excel file to try this code. Please also read the comments inside the code for better understanding.&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-RenderWorksheetToGraphicContext.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;


      </description>
    </item>
    
  </channel>
</rss>
