1

Well I am working with visual studio 2015 on an mfc project. I have enabled the office like ribbon in the project creation wizard. I am inheriting from CView for my view class to get printing support as documentation suggests. I have also overrided OnDraw too. Now I want to get a print preview of the document with the print preview options on the ribbon. I don't know where to start or how to act. Any suggestions, propositions or examples ? Thanks in advance.

4

1 回答 1

1

您无需为打印预览窗口再次执行此操作。

当您为 MDI 和“功能区控件”启动新的“MFC 应用程序”时,该应用程序自身提供打印预览选项。

创建新应用程序后,运行该应用程序。

应用程序运行并打开一个窗口。

选择如下图所示的选项。

您将获得“打印预览”选项。

在源代码中搜索“打印视图”以了解其实现方式。在此处输入图像描述

在此处输入图像描述

于 2016-10-14T21:22:29.660 回答