如何在不使用MS Office的情况下将MS Office文档转换为XPS? [英] How to convert MS office documents to XPS without using MS office?

查看:101
本文介绍了如何在不使用MS Office的情况下将MS Office文档转换为XPS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我需要将MS Office文档转换为XPS格式而不使用MS office interops。



我试过以下,



1. 从代码打印到XPS [ ^ ] - 这需要原生软件打印到XPS。



2.为XPSDrv安装了WDK for 8.1但找不到任何有用的东西。实际上不知道如何以及从哪里开始。



3.试图自动化Microsoft XPS文档编写器但最终用我自己的内容编写新的XPS纯文本。



我期待的功能如

Hi
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)





如果没有对输入文件进行逆向工程,是否可以在没有原生软件的情况下转换/打印到XPS?



是否有可用于此转换的开源代码(C#,C ++,WPF)?





谢谢提前



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

推荐答案

您可以使用第三方库。我使用了 Aspose ,这很好。
You can use third party libary. I have used Aspose which is good.


这篇关于如何在不使用MS Office的情况下将MS Office文档转换为XPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆