windows 如何打印 XPS 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/226103/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:35:44  来源:igfitidea点击:

How do you print XPS files?

windowsprintingxps

提问by

My printer ran out of black toner and I didn't have a spare, so I thought it'd be a good idea to “print” documents to .XPS files for now, then print them when the new toner arrives.

我的打印机用完了黑色碳粉,我没有备用碳粉,所以我认为现在最好将文档“打印”为 .XPS 文件,然后在新碳粉到达时打印它们。

So, now I have my toner but I can't work out how to print the files. I found this great post on Tim Barcz's blogwhich seems to indicate I'm not alone.

所以,现在我有了墨粉,但我不知道如何打印文件。我在 Tim Barcz 的博客上发现了这篇很棒的帖子,这似乎表明我并不孤单。

I can open them and view them in IE, but if I try to print them it either ignores the command altogether or crashes.

我可以打开它们并在 IE 中查看它们,但是如果我尝试打印它们,它要么完全忽略该命令,要么崩溃。

I downloaded the XPS Essentials Pack from the Microsoft website and tried to install it, but it refuses to install and keeps crashing with a ten-page error message. Ironically, I would normally print this message out to deal with it.

我从 Microsoft 网站下载了 XPS Essentials Pack 并尝试安装它,但它拒绝安装并不断崩溃并显示十页错误消息。具有讽刺意味的是,我通常会打印这条消息来处理它。

My “solution” is to open the .XPS files in IE, then screenshot them and paste them into Paint Shop Pro so I can print them as graphics.

我的“解决方案”是在 IE 中打开 .XPS 文件,然后将它们截图并粘贴到 Paint Shop Pro 中,以便我可以将它们打印为图形。

As Tim Barcz says in his post that I linked to:

正如 Tim Barcz 在他的帖子中所说,我链接到:

That's it…simple. What I don't get is why people are so afraid to embrace new technology?

就是这样……很简单。我不明白的是为什么人们如此害怕接受新技术?

回答by Jason Z

I have had no problems printing XPS docs from IE. The first thing that comes to mind is what OS are you running, what version of IE, are all service packs installed, etc?

我从 IE 打印 XPS 文档没有问题。首先想到的是您正在运行什么操作系统,IE 版本是什么,是否安装了所有服务包等?

Another option would be to copy the XPS files to a thumb drive (or send over the network) and print from another computer that does not have any issues.

另一种选择是将 XPS 文件复制到拇指驱动器(或通过网络发送)并从另一台没有任何问题的计算机上打印。

Edit:

编辑:

Follow up questions...Can you print non-XPS docs? Have you restarted the printer? Is your print spooler messed up?

后续问题...您可以打印非 XPS 文档吗?您是否重新启动了打印机?你的打印后台处理程序搞砸了吗?

I have had many instances where I could not print due to a bad print job clogging the spooler. Restart the spooler or restarting your PC usually takes care of this issue.

我遇到过很多次由于打印作业堵塞导致后台打印程序无法打印而无法打印的情况。重新启动后台处理程序或重新启动您的 PC 通常可以解决此问题。

回答by moogs

IE has an issue with printing XPS files to a network printer, is this a network printer?

IE 在将 XPS 文件打印到网络打印机时出现问题,这是网络打印机吗?

回答by dirkgently

The short answer to printing XPS is to use the "Microsoft XPS Document Writer".

打印 XPS 的简短答案是使用“Microsoft XPS Document Writer”。

This 'printer' gets installed when you install Essentials Pack/XPS Viewer on your system. IMHO, it is better to install the former. Note that MS has upgraded the EP from RC to 1.0 sometime back. So, probably, the problem you have is one of using the older EP. Now, downloading and installing the newer EP (i.e. EP 1.0) doesn't work always. The safest bet in this case is to manually uninstall the EP RC Pack, and then install EP 1.0.

当您在系统上安装 Essentials Pack/XPS Viewer 时,就会安装此“打印机”。恕我直言,最好安装前者。请注意,MS 已将 EP 从 RC 升级到 1.0。因此,您可能遇到的问题之一是使用较旧的 EP。现在,下载和安装较新的 EP(即 EP 1.0)并不总是有效。在这种情况下,最安全的方法是手动卸载 EP RC Pack,然后安装 EP 1.0。

Also, remember that you'd probably have to uninstall/upgrade the installed .NET runtime (or reinstall it). Oh, and then there is MS Core XML Services 6.0 that is required for MS XPSDW (the printer I mentioned earlier, remember?) to work. However, a quick look back at MS's site (http://www.microsoft.com/downloads/details.aspx?familyid=993C0BCF-3BCF-4009-BE21-27E85E1857B1&displaylang=en#Requirements) tells us this is supported for upto XP SP2. Check with MS to know if SP3 is supported as well.

另外,请记住,您可能必须卸载/升级已安装的 .NET 运行时(或重新安装)。哦,还有 MS XPSDW(我之前提到的打印机,记得吗?)工作所需的 MS Core XML Services 6.0。但是,快速回顾一下 MS 的站点(http://www.microsoft.com/downloads/details.aspx?familyid=993C0BCF-3BCF-4009-BE21-27E85E1857B1&displaylang=en#Requirements)告诉我们这支持高达 XP SP2。请咨询 MS 以了解是否也支持 SP3。

In case you manage to get around all this somehow, you'd want to view the output of the prints you fire. I have the IE-tab extension on my browser and I open all XPS files using this one. Recently, however, I've heard that Pagemark has come up with a ff plug-in for viewing XPS files. You might want to check it out (http://www.pagemarktechnology.com/home/xps-test.html).

如果您设法以某种方式解决所有这些问题,您可能希望查看您打印的打印件的输出。我的浏览器上有 IE-tab 扩展,我使用这个打开所有 XPS 文件。不过最近听说Pagemark 推出了一个ff 插件来查看XPS 文件。您可能想查看一下 ( http://www.pagemarktechnology.com/home/xps-test.html)。

And of course, check out Wikipedia (http://en.wikipedia.org/wiki/XML_Paper_Specification)!

当然,请查看维基百科(http://en.wikipedia.org/wiki/XML_Paper_Specification)!

回答by LD.

If you don't want to print to XPS, select another printer as the default one as indicated by previous comments. Also the XPS printer seems to have problems with margins or page size (some information are outside the A4 or too close to border to be printed).

如果您不想打印到 XPS,请选择另一台打印机作为默认打印机,如前面的注释所示。此外,XPS 打印机似乎存在边距或页面大小问题(某些信息超出 A4 或太靠近边框而无法打印)。

Otherwise, when opening XPS files in IE9, the "File>Print" menu option is disabled. But you can use the keyboard shortcut: Ctrl+P

否则,在 IE9 中打开 XPS 文件时,“文件>打印”菜单选项将被禁用。但是您可以使用键盘快捷键:Ctrl+P

回答by thespa

There are XPS to JPG/JPEG converters all over the web, pick one ;/

网络上到处都是 XPS 到 JPG/JPEG 的转换器,选择一个;/

回答by Sam

I had big problems with the XPS essentials pack, too.

我也遇到了 XPS 必需品包的大问题。

After a lot of research and debugging I found the installation of XPS to be damaged somehow, and just scrapped and reinstalled the whole computer.

经过大量的研究和调试,我发现XPS的安装不知何故损坏,只好报废并重新安装了整个计算机。

Afterwards everything XPS did work like charm.

之后,XPS 所做的一切都充满魅力。

So my guess would be: your XPS installation is faulty. Fix: reinstall. Workaround: print from some other computer.

所以我的猜测是:您的 XPS 安装有问题。修复:重新安装。解决方法:从其他计算机打印。

回答by toddq

With all due respect to the other answers, I believe you're overlooking the most likely cause and the easiest solution. The most likely cause is that the person's default browser is not Internet Explorer. The solution in that case is to open IE and type in the address of the xps file (e.g., C:\Users\Public\Documents\EVIDENCE\groupon.xps

在充分尊重其他答案的情况下,我相信您忽略了最可能的原因和最简单的解决方案。最可能的原因是此人的默认浏览器不是 Internet Explorer。在这种情况下的解决方案是打开 IE 并输入 xps 文件的地址(例如,C:\Users\Public\Documents\EVIDENCE\groupon.xps

回答by toddq

Windows XP SP3, IE6, all up to date AFAIK.

Windows XP SP3,IE6,所有最新的AFAIK。

I use Firefox mostly, so haven't updated IE for ages. Maybe IE7 would be more successful.

我主要使用 Firefox,所以很久没有更新 IE 了。也许IE7会更成功。

The point was that XPS is meant to be some kind of PDF-killer, but the difference is that PDF just works, while XPS has been a disaster. I don't mind errors, but I want it to tell me what is wrong, not just say it didn't work, as I can see that from the lack of pages coming out of the printer.

关键是 XPS 旨在成为某种 PDF 杀手,但不同之处在于 PDF 可以正常工作,而 XPS 却是一场灾难。我不介意错误,但我希望它告诉我出了什么问题,而不仅仅是说它不起作用,因为我可以从打印机中缺少页面中看出这一点。

回答by toddq

My answer: anytime you need to resort to 'steps' to resolve an issue that normally 'just works' in any other format, you have by definition gone beyond 'just works' to that place where you need to do work to make something 'just work'.

我的回答:任何时候您需要诉诸“步骤”来解决通常以任何其他格式“正常工作”的问题时,根据定义,您已经超越了“正常工作”的范围,您需要做一些工作来制作某些东西”只是工作'。