OnPrint不会从CFormView调用 [英] OnPrint Does not get called from CFormView
本文介绍了OnPrint不会从CFormView调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究MDI应用程序,其所有视图都是CFormView派生的。
在其中一个视图中显示需要打印的图表。
我覆盖了所有必要的功能,如OnBeginPrinting,OnPrint等。
但这些函数没有被调用。请帮助
I am working on MDI Application which has all views as CFormView Derived.
On one of view there is graph displayed which needs to be printed.
I overridden all necessary functions like OnBeginPrinting,OnPrint etc.
But these functions did not get called.Please Help
推荐答案
根据文档 [ ^ ]调用此函数来打印每个页面。您确定已正确初始化打印参数吗?
According to the documentation[^] this function gets called to print each page. Are you sure that you have initialised the print parameters correctly?
我在OnPreparePrinting函数中添加了行CView :: DoPreparePrinting,如其他一些网站所建议的那样工作
I added line CView::DoPreparePrinting in OnPreparePrinting Function as suggested in some other site and things worked
这篇关于OnPrint不会从CFormView调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文