如何在基于对话框的MFC应用程序上使用“打印和预览"功能? [英] How to use Print and Preview function on a dialog Based MFC Application?

查看:168
本文介绍了如何在基于对话框的MFC应用程序上使用“打印和预览"功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能解释我如何在基于对话框的MFC App中使用打印和预览"选项?

我正在尝试创建一个文本编辑器,并且我已经成功地做到了.

现在,我想添加一个按钮来打印相同的数据,但是我不知道该怎么做.你能给我什么建议吗?

附加说明:
我想从使用ActiveX控件"Microsoft Common Dialog控件,版本6.0"实现的编辑框(多行和只读)中打印数据.

预先谢谢您.

Hello Everyone,

Can anyone please explain me how to use Print and preview option in a dialog based MFC App?

I''m trying to create a text editor and I have successfully done that.

Now I want to add a button for printing the same data but I don''t know how to do it. could you give me any advice?

Extra notes:
I want to print the data from the edit box (Multiline and Read only) which i have implemented using ActiveX control "Microsoft Common Dialog control, version 6.0".

Thank you in advance.

推荐答案

您应该告诉我们如何实现此文本编辑器,要打印的内容...

无论如何,这里有一些链接可能会有所帮助:

http://www.google.com/search? hl = zh-CN& q = print + and + print + preview + mfc& rlz = 1I7GGHP_esES472 [ http://msdn.microsoft.com/en-us/library/aabc3hc6 (v = vs.71).aspx [ http://msdn.microsoft.com/en-us/library/df9f4ta6 (v = vs.80).aspx [用于对话框的MFC打印预览扩展DLL [ ^ ]

http://msdn.microsoft.com/en-us/vstudio/bb879960.aspx [ ^ ]

作为其他信息,请查看此页面 [
You should tell us how have you implemented this text editor, what you want to print...

Anyway, here are some links that might help:

http://www.google.com/search?hl=en&q=print+and+print+preview+mfc&rlz=1I7GGHP_esES472[^]

http://msdn.microsoft.com/en-us/library/aabc3hc6(v=vs.71).aspx[^]

http://msdn.microsoft.com/en-us/library/df9f4ta6(v=vs.80).aspx[^]

MFC Print preview extension DLL for dialogs[^]

http://msdn.microsoft.com/en-us/vstudio/bb879960.aspx[^]

As extra information, take a look at this page[^] were all the articles posted in CP with relationship to printing are.
Print and preview is what you are looking for, see that there is information for a lot of languages, but there is also information for VC.

Hope this helps you.


这篇关于如何在基于对话框的MFC应用程序上使用“打印和预览"功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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