<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Managing OLE Objects with Golang via C&#43;&#43;</title>
    <link>https://docs.aspose.com/cells/go-cpp/managing-ole-objects/</link>
    <description>Recent content in Managing OLE Objects 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/managing-ole-objects/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Inserting a WAV file as an OLE Object with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/inserting-a-wav-file-as-an-ole-object/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/inserting-a-wav-file-as-an-ole-object/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells provides the functionality to add different types of OLE objects to Excel worksheets. We will see in the following code example how to add a WAV file as an OLE object using the simple APIs provided by Aspose.Cells.
&lt;/div&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-InsertingAWavFileAsAnOleObject.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: Access and Modify the Display Label of the Linked OLE Object with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/access-and-modify-the-display-label-of-the-linked-ole-object/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/access-and-modify-the-display-label-of-the-linked-ole-object/</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;Microsoft Excel allows you to change the display label of the OLE object as shown in the following screenshot. You can also access or modify the display label of the OLE object using Aspose.Cells APIs with the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/oleobject/getlabel/&#34;&gt;&lt;strong&gt;GetLabel()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/cpp/aspose.cells.drawing/oleobject/setlabel/&#34;&gt;&lt;strong&gt;SetLabel(const U16String&amp;amp; value)&lt;/strong&gt;&lt;/a&gt; methods.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;access-and-modify-the-display-label-of-the-linked-ole-object_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;access-and-modify-the-display-label-of-the-linked-ole-object&#34;&gt;&lt;strong&gt;Access and Modify the Display Label of the Linked OLE Object&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Please see the following sample code; it loads the &lt;a href=&#34;64716810.xlsx&#34;&gt;sample Excel file&lt;/a&gt; that contains the OLE object. The code accesses the OLE object and changes its Label from Sample APIs to Aspose APIs. Please see the console output given below, which shows the effect of the sample code on the sample Excel file 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-AccessAndModifyTheDisplayLabelOfTheLinkedOleObject.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;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;Ole&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Object&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Label&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Before&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Sample&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;APIs&lt;/span&gt;

&lt;span class=&#34;nx&#34;&gt;Ole&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Object&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Label&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;After&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Aspose&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;APIs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Extract OLE Objects from Workbook with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/extract-ole-objects-from-workbook/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/extract-ole-objects-from-workbook/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Sometimes, you need to extract OLE objects from a workbook. Aspose.Cells supports extracting and saving those OLE objects.&lt;/p&gt;
&lt;p&gt;This article shows how to create a console application in Visual Studio and extract different OLE objects from a workbook with a few simple lines of code.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;extract-ole-objects-from-a-workbook&#34;&gt;&lt;strong&gt;Extract OLE Objects from a Workbook&lt;/strong&gt;&lt;/h2&gt;
&lt;h3 id=&#34;creating-a-template-workbook&#34;&gt;&lt;strong&gt;Creating a Template Workbook&lt;/strong&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Create a workbook in Microsoft Excel.&lt;/li&gt;
&lt;li&gt;Add a Microsoft Word document, an Excel workbook, and a PDF document as OLE objects on the first worksheet.&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;Template document with OLE objects (OleFile.xls)&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;extract-ole-objects-from-workbook_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;Next, extract the OLE objects and save them to the hard disk with their respective file types.&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;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://downloads.aspose.com/cells/go-cpp/&#34;&gt;Download Aspose.Cells for C++&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Install it on your development computer.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;All Aspose components, when installed, work in evaluation mode. Evaluation mode has no time limit, and the components only inject 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 &lt;strong&gt;Visual Studio&lt;/strong&gt; and create a new console application. This example will show a C++ console application.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add References
&lt;ol&gt;
&lt;li&gt;Add a reference to the Aspose.Cells component to your project, for example, add a reference to &lt;code&gt;...\Program Files\Aspose\Aspose.Cells\Bin\Net1.0\Aspose.Cells.dll&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;extract-ole-objects&#34;&gt;&lt;strong&gt;Extract OLE Objects&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The code below does the actual work of finding and extracting OLE objects. The OLE objects (DOC, XLS, and PDF files) are saved to disk.&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-ExtractOleObjectsFromWorkbook.go&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: Get or Set the Class Identifier of the Embedded OLE Object with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/get-or-set-the-class-identifier-of-the-embedded-ole-object/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/get-or-set-the-class-identifier-of-the-embedded-ole-object/</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 provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/oleobject/getclassidentifier/&#34;&gt;OleObject.GetClassIdentifier()&lt;/a&gt; property, which you can use to get or set the class identifier of an embedded OLE object. OLE object class identifiers are actually GUIDs, i.e., Globally Unique Identifiers. GUIDs are always 16 bytes long; therefore, class identifiers are also 16 bytes long. They are often found inside the Windows Registry and provide information to the host application about how to open embedded OLE objects containing various embedded resources inside the client application.&lt;/p&gt;
&lt;h2 id=&#34;get-or-set-the-class-identifier-of-the-embedded-ole-object&#34;&gt;&lt;strong&gt;Get or Set the Class Identifier of the Embedded OLE Object&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following screenshot shows the OLE object class identifier, i.e., GUID, which has been read from the &lt;a href=&#34;5115190.xls&#34;&gt;sample Excel file&lt;/a&gt; containing the embedded PowerPoint OLE object.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;get-or-set-the-class-identifier-of-the-embedded-ole-object_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h3 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Please see the following sample code, executed with the &lt;a href=&#34;5115190.xls&#34;&gt;sample Excel file&lt;/a&gt;, and its console output, which prints the class identifier of the OLE object, i.e., GUID. The printed GUID is exactly the same as shown in the screenshot.&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-GetOrSetTheClassIdentifierOfTheEmbeddedOleObject.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;This is the console output of the above sample code when executed with the &lt;a href=&#34;5115190.xls&#34;&gt;sample Excel file&lt;/a&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;DC020317&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;E6E2&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;4A62&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;B9FA&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;B3EFE16626F4&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Automatically refresh OLE object via Microsoft Excel with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/automatically-refresh-ole-object-via-microsoft-excel-using-aspose-cells/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/automatically-refresh-ole-object-via-microsoft-excel-using-aspose-cells/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/oleobject/getautoload/&#34;&gt;&lt;strong&gt;OleObject.GetAutoLoad()&lt;/strong&gt;&lt;/a&gt; property to refresh the OLE object when the Excel file is opened in Microsoft Excel. Because of this property, the OLE object will display the correct OLE image generated by Microsoft Excel.
&lt;/div&gt;

&lt;p&gt;The following sample code loads the sample Excel file (5115231.xlsx), which has a non‑real OLE image. The OLE object is actually a Microsoft Word document, but the sample Excel file shows the animal image instead of the Microsoft Word image. However, if you open the output Excel file (5115225.xlsx), you will see Microsoft Excel displays the correct OLE image.&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-AutomaticallyRefreshOleObjectViaMicrosoftExcelUsingAsposeCells.go&#34;&gt;&lt;/script&gt;

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