I have a Slides license, but I need to embed part of a slide into an Excel file through automation (I don't have Cells).
Questions: How can I do this? Do I need to write it to file and import it back when I create the OleObject? Isn't there a more direct way to do this? —an explicit cast would be really useful.
Well, I was hoping that I could someway either 1. cast OleObjectFrame (or a property) into an Office Interop OleObject, or 2. cast the Slide/Shapes representation into an Office Interop supported type, but it doesn't seem to be the case.
So in order for me to use the objects I already have in memory with automation I need to write it to file an import it back, right? —which is what I'm doing now.
Oh, and I meant to embed (many) shapes from a slide (1-slide presentation) into an Excel file. Unfortunately, I can't use images, so OLE objects are pretty much my only choice.
Yes, I think you have to store presentation to a file. For details about Office Interop functionality please refer to the MSDN. We don’t use it and can’t help.