Click here to Skip to main content
15,792,397 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to convert MS office documents to XPS format without using MS office interops.

I tried the following,

1. Print to XPS from Code[^] - This requires native software to print to XPS.

2. Installed WDK for 8.1 for XPSDrv but could not find anything useful. Actually don't know how and where to start.

3. Tried to automate "Microsoft XPS document writer" but ended up with writing new XPS with my own content like plain text.

I am expecting a function like
ConvertOrPrintToXPS(inputfile.docx, outputfile.xps)

Is it possible to convert/print to XPS without its native software without reverse engineering the input documents ?

Is there any open source code available for this conversion (C#, C++, WPF) ?

Thanks in advance
Sivaji1565 26-Aug-15 23:54pm    
Hi Ashok. I have evaluated Spire.Office for XPS conversion already but I wanted to make an attempt before buying any third party libs.

Thank you.

1 solution

You can use third party libary. I have used Aspose which is good.
Share this answer
Sivaji1565 26-Aug-15 23:56pm    
Hi Darshan, Thanks for your reply. I will try Aspose too.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900