Hello
I want to ask if purchasing your Aspose.Slides for .NET software I will be able to extract any OLE objects from the presentation, be it audio, video etc. ?
if it is possible to send me a little sample or point me to one.
Thanks
Christo Djambov
This message was posted using Aspose.Live 2 Forum
Hello Dear,
Thanks for your interest in Aspose.Slides.
I would like to share that Aspose.Slides for .NET allows to access the OLE frame data as byte array and then you can save that byte array to respective file format. For your kind reference, I have attached the sample presentation along with the code snippet. Please share with us, if I may help you any further.
//Instantiate a Presentation object that represents a PPT file
Presentation Pres = new Presentation("D:\\Aspose Data\\DemoOLE.ppt");
// Finding Ole Frame
Byte[] SoundArr=null;
foreach (Shape sh in Pres.Slides[0].Shapes)
{
if (sh is OleObjectFrame)
{
OleObjectFrame ole=(OleObjectFrame)sh;
SoundArr = ole.ObjectData;
}
}
// Open file for reading .
System.IO.FileStream _FileStream = new System.IO.FileStream("D:\\Sound.wav", System.IO.FileMode.Create, System.IO.FileAccess.Write);
// Writes a block of bytes to this stream using data from a byte array. .
_FileStream.Write(SoundArr, 0, SoundArr.Length);
// close file stream .
_FileStream.Close();
Thanks and Regards,