From: Tim Roberts on
Harish <Harish.Sohani(a)gmail.com> wrote:
>
>Our application uses Windows GDI library to perform rendering and
>display of data/output onto
>the devices such as Screen and Printer.
>
>While I am trying to print the data onto a series of printers (HP
>1010, HP 1018, HP 1020 and HP
>3050) I am facing a typical problem.
>...
>However at situations, the space available for printing (displaying) a
>piece of data may not be enough. In such scenario, I display such
>information onto a temperory (display) DC and then perform
>StretchBlt(....) onto the printer DC.

Devices are not required to support StretchBlt at all. Printers are
notorious for getting it wrong, and even the GDI simulation sucks.

It would be a much better plan for you to implement your own StretchBlt
operation with your own stretch/shrink algorithm, and blt the final bitmap
to the printer.

In general, it is safest to assume that printers are stupid.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.