如何在wpf中打印帧 [英] How to prinf frame in wpf

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

问题描述



我有框架,它包含大量的控件,我想打印整帧数据和控件,你可以指导我或发送片段

解决方案

这并不像看起来那么容易。这篇短文以编写打印代码名声不好开头。 (是的!): http://programming-pages.com/2012/06/12/printing -in-wpf [ ^ ]。



这个开源产品可以帮助您: http:// wpfprintengine.codeplex.com [ ^ ]。



还有一些关于CodeProject的文章专门介绍它。



事情是:打印技术允许你格式化和打印输出任何数据。实际上,最好不要打印控件,而是打印与这些控件绑定的数据。同时,我可以理解您需要遵循在WPF屏幕上创建的相同设计,而无需进行两次工作。但是你为屏幕设计的并不是真的设计用于打印页面,所以这是一个明显的现实争议。上面的产品参考提供了打印任何现有 Visual 的工具,所以这可以帮到你。



-SA

Hi,
I have frame it contains large number of controls and I want to print whole frame data and controls can you guide me or send snippets

解决方案

This is not as easy as it may seem. This is the short article starting with the phrase "Writing code for printing has a bad reputation." (true!): http://programming-pages.com/2012/06/12/printing-in-wpf[^].

This open-source product can help you: http://wpfprintengine.codeplex.com[^].

There are also some article on CodeProject devoted to it.

The thing is: the printing techniques allow you to format and print out any data. Actually, it's a good idea not to print controls, but print data you bind with those controls. At the same time, I can understand that you need to follow the same exact design you created on your WPF screen, without having to do some work twice. But what you designed for screen is not really designed to be put on print pages, so this is a clear real-life controversy. The product references above provides a facility to print any existing Visual, so this is what can help you.

—SA


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

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