Currently I have a WPF application in C#, but I\'m finding it to be incredibly difficult to find any useful ways to embed a PowerPoint presentation into my window.
O
There is a WPF control called DocumentViewer
.
Document
property of the DocumentViewer.Here is the link to convert office documents (including pptx
) to XPS in C sharp.
XAML
Bind to the Document
property of the control (Note that ConvertPptxDocToXPSDoc
is the method to convert pptx to xps)
myDocumentViewer.Document = this.ConvertPptxDocToXPSDoc(this.FileName, this.newXPSDocumentName).GetFixedDocumentSequence();