PowerPoint.Presentation presentation = Application.Presentations.Add(Microsoft.Office.Core.MsoTriState.msoCTrue);
if (presentation != null)
{
PowerPoint.Slide slide =presentation.Slides.Add(presentation.Slides.Count + 1,PowerPoint.PpSlideLayout.ppLayoutPictureWithCaption);
PowerPoint.Shape shape = slide.Shapes[2];
slide.Shapes.AddPicture(pictureFileName,
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
shape.Left, shape.Top, shape.Width, shape.Height);
slide.Shapes[1].TextFrame.TextRange.Text = pictureFileName;
presentation.SaveAs("C:\\Documents and Settings\\yxie\\Desktop\\test\\12.pptx", PowerPoint.PpSaveAsFileType.ppSaveAsDefault, Microsoft.Office.Core.MsoTriState.msoCTrue);
}