내가 사용했습니다 :
Imports PowerPoint = Microsoft.Office.Interop.PowerPoint
자동으로 HTML에 파워 포인트를 변경할 수 있도록. 필자는 파일 감시자를 사용하여 내 컴퓨터의 디렉토리에서 .pptx로 설정되어있는 순간 파워 포인트 프리젠 테이션을주의 깊게 보았습니다. 그러나 다른 형식을 곧 추가하도록 변경하겠습니다. 이 fileWater는 컴퓨터가 시작할 때 시작되는 서비스에 있습니다. 그런 다음 파워 포인트 작성 또는 수정되었는지 확인 보이는이 코드를 실행 :이 수정 된 파일을 가져오고 HTML 문서로 저장
을
Private Shared Sub OnChanged(ByVal source As Object, ByVal e As FileSystemEventArgs)
'set varaibles so that html can save in correct place
Dim destinationDirectory As String = e.FullPath.Replace(e.Name.ToString(), "")
Dim sourceLocation As String
Dim fileName As String
'couple of if statements to get rid of unwanted characters
If e.Name.Contains("~$") Then
fileName = e.Name.Replace("~$", "")
fileName = fileName.Replace(".pptx", ".html")
Else
fileName = e.Name
fileName = fileName.Replace(".pptx", ".html")
End If
If e.FullPath.Contains(("~$")) Then
sourceLocation = e.FullPath.Replace("~$", "")
Else
sourceLocation = e.FullPath
End If
Dim strSourceFile As String = sourceLocation 'set source location after removing unwanted characters
Dim strDestinationFile As String = destinationDirectory & fileName 'set the destination location with the directory and file name
'set ppAPP to a power point application
Dim ppApp As PowerPoint.Application = New PowerPoint.Application
Dim prsPres As PowerPoint.Presentation = ppApp.Presentations.Open(strSourceFile, MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoFalse)
'Call the SaveAs method of Presentaion object and specify the format as HTML
prsPres.SaveAs(strDestinationFile, PowerPoint.PpSaveAsFileType.ppSaveAsHTML, MsoTriState.msoTrue)
'Close the Presentation object
prsPres.Close()
'Close the Application object
ppApp.Quit()
End Sub
. 또한 애니메이션을 저장 한 경우 실행해야하는 파일도 저장되므로 애니메이션도 저장됩니다.
Alfresco, SharePoint, Confluence, http://slideshare.net, OpenOffice ...이 작업을 수행 할 수있는 기존 패키지가 있습니다. – MarkJ