using System;
using System.Collections.Generic;
using System.Text;
//add by my shelf
using PowerPoint=Microsoft.Office.Interop.PowerPoint;
using Microsoft.Office.Core;
using System.Windows.Forms;
namespace Test
{
class Program
{
static void Main(string[] args)
{
string filename=@"d:\a.ppt";
PowerPoint.Application ap = new PowerPoint.Application();
ap.Visible = MsoTriState.msoTrue;
PowerPoint.Presentation ps = ap.Presentations.Open(filename, MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoTrue);