Hi,
I have a .swf file and I'm wondering what the C# code would be to embed this file.
So far, I have this:
...make HttpRequest and set up rectangle rect, also "slide" is a reference to presentation.Slides[0]
Stream stream = httpWebResponse.GetResponseStream();
Image testimg = Image.FromStream(stream);
var img1 = presentation.Images.Append(testimg);
byte[] bytes = System.IO.File.ReadAllBytes(Path + @"\Flash1.swf");
IOleObject flashObject = slide.Shapes.AppendOleObject("ShockwaveFlash.ShockwaveFlash.10", bytes, rect);
flashObject.SubstituteImagePictureFillFormat.Picture.EmbedImage = img1;
flashObject.ProgId = "ShockwaveFlash.ShockwaveFlash.10";
The image on top of the flash object shows up, but the animation is not playing.
Sorry I'm very novice, any help would be appreciated.