I am trying to create a new presentation and add a excel file generated by formula one. I am getting:
“The server application … reinstall the server application error.” The file opens fine in excel.
Thanks for considering Aspose.Slides.
I was able to add excel sheet successfully. Please see my code below. I have attached the source excel file source.xls and output presentation destination.ppt for you to view. If you will double click the Object Changed Issue image, it will display excel sheet.
//Read the excel file into the stream
FileStream fin = new FileStream("d:\\source.xls", FileMode.Open, FileAccess.Read);
byte byts = new byte[fin.Length];
fin.Read(byts, 0, (int)fin.Length);
//Create the presentation and insert the excel file
Presentation dstPres = new Presentation();
Slide dstSld = dstPres.GetSlideByPosition(1);
OleObjectFrame oof = dstSld.Shapes.AddOleObjectFrame(100, 100, 3000, 3000, "Microsoft Excel Worksheet", byts);
//Write the presentation on disk