
Printing / Print Preview problem?
Quote:
>I have created an application which has a CScrollView and I have added
>print/print preview commands successfully, but the print preview and output
>from actually printing shows the information contained in the window to be
>a lot smaller than I actually want it. Could anyone tell me how I could get
>around this problem without having to change massive amounts of my code?
>Thank you
>Cecil.
Since printer resolution is always not the same as screens' then you have to
scale all drawing on the printer DC. The simplest way is to use:
CDC::SetMapMode() , CDC::SetViewportExt() and CDC::SetWindowExt()
with ISOTROPIC mode and set the viewport/window extent to proper value.
JienHou