본문 바로가기

Etc/MicroSoft Office

다른 PPT파일로 부터 슬라이드 가져오기


 다른 PPT파일로 부터 슬라이드 가져 오는 방법 입니다.

   try

   {

      //특정 파워포인트 파일에서 슬라이드 가져오기

      //(파일위치 , 슬라이드가 들어가 위치, 가져올 슬라이드의 시작 슬라이드,가져올 슬라이드의 마지막 슬라이더)

      Application.ActivePresentation.Slides.InsertFromFile("d:\\test.ppt", 1, 1, 3);

   }

   catch (Exception ex)

   {

      Debug.WriteLine(ex.Message);

   }