在wpf中打印privew [英] print privew in wpf

查看:133
本文介绍了在wpf中打印privew的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..
我正在WPF中开发库存管理系统.
我希望用户查看打印预览并打印发票.
我正在使用此代码

http://www.eggheadcafe.com/tutorials/aspnet/9cbb4841-8677-49e9-a3a8-46031e6​​99b2e/wpf-printing-and-print-pr.aspx

-> XPS文档打印


它给了我错误

错误1:找不到类型或名称空间名称"Window"(是否缺少using指令或程序集引用?)

错误2找不到类型或名称空间名称"FormData"(您是否缺少using指令或程序集引用?)

该怎么解决?
还有其他打印预览方法吗?

谢谢

Hi..
i am developing inventory management system in WPF.
i want user to view print preview and print the invoice.
i am using this code

http://www.eggheadcafe.com/tutorials/aspnet/9cbb4841-8677-49e9-a3a8-46031e699b2e/wpf-printing-and-print-pr.aspx

->XPS Document Printing


it gives me error

Error 1 :The type or namespace name ''Window'' could not be found (are you missing a using directive or an assembly reference?)

Error 2 The type or namespace name ''FormData'' could not be found (are you missing a using directive or an assembly reference?)

how to solve this?
is there any other method for print Preview?

thanks

推荐答案

是的,要在WPF中打印文档,您需要使用XPS文档打印.

你读过这个吗:

http://msdn.microsoft.com/en-us/library/ms742418.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/aa969772.aspx [ ^ ]


我认为这会对您有所帮助.
Yes to print document in WPF you need to use XPS document printing.

Did you read this :

http://msdn.microsoft.com/en-us/library/ms742418.aspx[^]
http://msdn.microsoft.com/en-us/library/aa969772.aspx[^]


I think this would help you.


这篇关于在wpf中打印privew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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