有关如何使用Print Document Package API的任何示例,例如CreateDocumentPackageTargetForPrintJob [英] any example about how to use Print Document Package APIs, e.g CreateDocumentPackageTargetForPrintJob

查看:166
本文介绍了有关如何使用Print Document Package API的任何示例,例如CreateDocumentPackageTargetForPrintJob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vs 2017(在Windows 10上)开发有关打印XPS文档的一些功能,但发现 不支持XPS API,https://msdn.microsoft.com/en-us/library/windows/desktop/ff686814(v = vs.85).aspx,

I am using the vs 2017 (on windows 10) for developing some functions about printing the XPS documentation, but found  XPS APIs are not supported, https://msdn.microsoft.com/en-us/library/windows/desktop/ff686814(v=vs.85).aspx,

建议使用 打印文档包API, 有没有关于如何使用这些功能的例子?例如  CreateDocumentPackageTargetForPrintJob

and it suggested to use the Print Document Package API,  Is there any example for how to use these functions? e.g. CreateDocumentPackageTargetForPrintJob

谢谢

推荐答案

感谢您在此处发布。

>>并建议使用 打印文档包API,  ;有没有关于如何使用这些功能的例子?例如  CreateDocumentPackageTargetForPrintJob

在MSDN文档中似乎没有这样的示例代码,它显示了如何直接调用这些接口。

There seems has no such sample code in MSDN documents which shows how to call these interfaces directly.

但是,因为它们都是COM接口,你可以参考包含如何在你的应用程序中调用COM接口的文档。

However, as they are all COM interfaces, you could refer to the documents which contains how to call COM interface in your application.

你的类型是什么应用?桌面应用程序或WinStore应用程序?

What's the type is your application? Desktop application or WinStore application?

如果您的应用程序是桌面应用程序,您可以参考下面的这些文档。

If your app is desktop app, you could refer to these documents below.

https://msdn.microsoft.com/en-us/library/windows/desktop/ ms690156(v = vs.85).aspx

https://www.codeproject.com/articles/633/introduction-to-com-what-it-is-and-how-to-use -it

如果您的应用是WinStore应用,您可以参考下面的这个文档。

If your app is WinStore app, you could refer to this document below.

https://docs.microsoft.com/en-us/previous-versions/windows /desktop/apps/hh465196(v=win.10

希望这可以帮到你。

最好的问候,

Baron Bi

Baron Bi


这篇关于有关如何使用Print Document Package API的任何示例,例如CreateDocumentPackageTargetForPrintJob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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