Implementing my own preview?

I developed my own Report Control, which is just nothing but drawing text on a CDC client DC controller. I also have a print function. The report output is sent directly to the printer. However, I want to inform the user of the exit information before the report is printed.

I cannot do this using the MFC preview architecture, since my project does not use the doc / view architecture. Is it possible to create a print preview window? How does the MFC handle this? Do I need to do any special processing or keep in mind when displaying output on the printer screen? I read that MFC used 2 DCs for preview purposes. Do I need to do this if Im goin for a custom preview?

Your input is much appreciated! TIA.

PS I am using Visual Studio 6, and there is no way to change this to a newer version, since there is no way to add doc / view support.

+5
source share
4 answers

. , ( ) , DC. / .

0

code, lib. .
, .

MFC, , . , , dll MFC. , NicePreview Delphi, !

0

RTF , ?

0
source

MFC has a CPreviewView class. Perhaps you can find a way to create an instance without an MDI structure.

Otherwise, you can simply draw on the screen everything that you draw on the DC printer. Just remember that you may have to scale it to reduce dpi.

0
source

All Articles