How to convert PowerPoint to XPS

The XML Paper Specification (XPS) format is basically an electronic representation of digital documents based on XML. It is a paginated fixed-layout format that retains the look and feel of your electronic documents. As a form of electronic paper, the XPS format provides a way in which you can easily create, share, print and save digital documents.

This article demonstrates how to convert PowerPoint to XPS, here are the steps we follow:

Step 1: Create an instance of presentation document.

Presentation ppt = new Presentation();

Step 2: Load the ppt file.

ppt.LoadFromFile("source.pptx", FileFormat.Pptx2010);

Step 3: Save to the XPS file.

ppt.SaveToFile("source.xps", FileFormat.XPS);

Step 4: Launch and view the XPS file.

System.Diagnostics.Process.Start("source.xps");

Full Code:

[C#]
Presentation ppt = new Presentation();
ppt.LoadFromFile("source.pptx");
ppt.SaveToFile("source.xps", FileFormat.XPS);
System.Diagnostics.Process.Start("source.xps");
[VB.NET]
Dim ppt As New Presentation()
ppt.LoadFromFile("source.pptx")
ppt.SaveToFile("source.xps", FileFormat.XPS)
System.Diagnostics.Process.Start("source.xps")

ScreenShot:

How to convert PowerPoint to XPS?