프레젠테이션 파일 형식 가져오기
Contents
[
Hide
]
파일 형식을 가져오려면 아래 단계를 따라 주세요:
- IPresentationInfo 클래스의 인스턴스 생성
- 프레젠테이션에 대한 정보 가져오기
아래 예제에서 파일 형식을 확인할 수 있습니다.
예제
string FilePath = @"..\..\..\Sample Files\";
string FileName = FilePath + "Getting the format of a file.pptx";
IPresentationInfo info;
info = PresentationFactory.Instance.GetPresentationInfo(FileName);
switch (info.LoadFormat)
{
case LoadFormat.Pptx:
{
break;
}
case LoadFormat.Unknown:
{
break;
}
}