Embed Excel sheet to display as Icon

Hi There,

I am evaluating presentation.core dll to embed the excel file into ppt slide as an icon. I am able to embed the file but when I click on the icon it's opening the data with in the PPT rather than opening in Excel. Can you please guide me through to embed as Icon ?


        public static void AddExcelOLEObject(this ISlide sld, ExcelOptions options)
        {
            //Get the excel file as stream
            FileStream excelStream = new FileStream(options.FilePath, FileMode.Open);

            //MemoryStream imageStream = ExcelHelper.GetExcelBitMap(excelStream);

            ////Image to be displayed, This can be any image
            FileStream imageStream = new FileStream(options.IconPath, FileMode.Open);

            //Add an OLE object to the slide
            IOleObject oleObject = sld.Shapes.AddOleObject(imageStream, "Excel.Sheet.12", excelStream);
            //Set size and position of the OLE object
            oleObject.Left = options.x;
            oleObject.Top = options.y;
            oleObject.Width = options.width;
            oleObject.Height = options.height;

            oleObject.SetHyperlink(oleObject.FileName);

        }


Thanks,
Nagesh



2 Replies 1 reply marked as answer

LB Lokesh Baskar Syncfusion Team March 22, 2021 08:50 AM UTC

Hi Nagesh,

Thank you for contacting Syncfusion support.  
Currently Essential Presentation doesn’t support to open a embedded OLE Object in another application when inserted as display icon in the PowerPoint.We have already logged this as a feature request. We have implemented this feature and planned to include in our upcoming 2021 Volume 1 release at the end of March 2021 tentatively.

You can track the status of feature from the below link:
 
 
Please let us know if you have any questions.

Regards,
Lokesh B
 



LB Lokesh Baskar Syncfusion Team March 30, 2021 09:33 PM UTC

Hi Nagesh, 

We are glad to announce that our Essential Studio 2021 Volume 1 release v19.1.0.54 is rolled out and is available for download under the following link. 
Lokesh B 


Marked as answer
Loader.
Up arrow icon