在MFC(Spread7)中使用CFormView(具有基类)实现打印/打印预览 [英] To implement Print/Print preview using CFormView(has base class) in MFC(Spread7)

查看:128
本文介绍了在MFC(Spread7)中使用CFormView(具有基类)实现打印/打印预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用FarPointSpread7在MFC应用程序中实现Print/PrintPreview,基本上它是第三方工具,在我的应用程序中,我需要使用CFormView作为基类,如何在使用MFC的Doc-View体系结构中实现相同的功能.
在我的方法中,我使用了基于Dialog的应用程序,但是我需要启动Spread7(它是第三方控件)并且需要实现CFormView,因此,我派生了一个新类CMyFormView:public CFormView,并在OnDraw()中创建了对象.要获得使用Doc-View体系结构,将CFormView作为基类(视图类)而不是从CDialog继承的Print/PrintPreview的实现.

解决上述问题的任何帮助将非常可观.


问候,
VK_91

Hi,

I am implementing Print/PrintPreview in MFC Application, using FarPointSpread7, basically it is third party tool, In my application, I need to use CFormView as base class, How to implement the same in Doc-View Architecture using MFC.

In My approach, I had used Dialog based application, but I need to launch Spread7 which is third party control and need to implement CFormView, hence, I derived a new class CMyFormView:public CFormView and created object in my OnDraw(), I need to obtain the implementation of Print/PrintPreview using Doc-View Architecture, CFormView as base class(View Class) instead of inheriting from CDialog.

Any help in resolving the above would be much appreciable.


With Regards,
VK_91

推荐答案

请参见此处 [ ^ ].


这篇关于在MFC(Spread7)中使用CFormView(具有基类)实现打印/打印预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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