I am using aspose.slides version 6.8 and I created a template powerpoint presentating in ppt 2010
"Powerpoint was unable to display some of the text, image, or objects on slides in the file "XYZ.pptx" because they have become corrupted. Affected slides have been replaced by blank slides in the presentation and it is not possible to recover the lost information. To ensure that the file can be opened in previous versions of powerpoint, use the "Save as" command (File menu) and save the file with either th esame or a new name"vand when users load the presentation that are on powerpoint 2007 they get this error
My guess is that this has to do with a recent change to dynamically add images to my slides using this code:
using (FileStream stream = new FileStream(_headerImage, FileMode.Open, FileAccess.Read))
{
var img = Image.FromStream(stream);
_imgx = destinationPresentation.Images.AddImage(img);
}
and then adding the picture like this . .
private void AddPictureFrame(SlideEx slide, float currentY, int height)
{
var idx = slide.Shapes.AddPictureFrame(ShapeTypeEx.Rectangle, HEADING_LEFT, currentY, HEADING_WIDTH, height, _imgx);
var picFrame = slide.Shapes[idx];
picFrame.LineFormat.FillFormat.FillType = FillTypeEx.NoFill;
slide.Shapes.Reorder(0, picFrame);
}
this works great when i open it up in powerpoint 2010 but when i open it up in 2007, i get this error:
Any suggestions on how to resolve?