gpt4 book ai didi

printing - 如何在 Windows 8 中打印 xps 文件

转载 作者:行者123 更新时间:2023-12-02 22:13:01 25 4
gpt4 key购买 nike

有没有博客或文档介绍如何在windows8中打印xps文件?我看过官方sdk的打印示例,但没有帮助。

最佳答案

我还尝试直接从 Windows 应用商店应用程序进行打印...就我而言,我正在通过代码在我的应用程序中创建 pdf 文档。到目前为止,我能做的最好的事情就是打开与文档关联的任何应用程序/程序(WinRT Surface 上的 XPS Viewer 应用程序...Win 8 系统上的 Adob​​e Reader(如果已安装))。这是我使用的代码:

StorageFile filetoShare = await Windows.Storage.KnownFolders.DocumentsLibrary.GetFileAsync("Document.PDF");
await Windows.System.Launcher.LaunchFileAsync(filetoShare);

无论哪种情况,它都会离开应用程序并直接转到关联的程序,然后要求用户采取操作进行打印。我很想找到一种直接从应用程序执行此操作的方法。

关于printing - 如何在 Windows 8 中打印 xps 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13338956/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com