Download free wpf convert xml to xps for windows 10 enterprise 64

How to convert Excel to XPS in C#

Many of our customers have requested to convert Excel workbook to an XPS file. Spire.XLS for .NET allows you to convert Excel (.xls, xlsx) to XPS. You only need three core lines of code to convert Excel workbook into XPS. Multiple elements in Excel file can be converted to XPS successfully, such as chart, shape, smart art, Image and etc.

Firstly, Download Spire.XLS for .NET (version 7.5.16 or above) and install it on your system. Then, adds Spire.XLS.dll as reference in the downloaded Bin folder thought the below path: "..\Spire.XLS\Bin\NET4.0\ Spire.XLS.dll".

Please check the original excel file first. In this worksheet, it contains image, shape, smart art, table and chart.

Now please check the codes in C#:

Step 1: Load an excel workbook from the file.

Step 2: Save the workbook to file in XPS format.

Effective screenshot of XPS file: