locked
Printer resolution dependent upon screen resolution.

    Question

  • I have a program that draws lines on paper.  When I have my Screen resolution set to 96 DPI, a printed 6 inch line is 6.25 inches long.  When I set the Screen resolution to 100 DPI, the printed line is 6 inches long.  How can I control this behavior of PrintDocument?  Without changing this behavior, my printout will be dependent upon the Screen resolution of the computer my program is running on.

    Edit:

    In the program I actually draw lines on a Bitmap and then draw the Bitmap to the printer.  The size of the Bitmap drawn to the printer is dependent upon the Screen resolution.   If I just draw a line directly to the printer, the line is Screen resolution independent.

    Thursday, May 03, 2007 7:03 AM

Answers

  • There is no problem.  The Bitmaps are prepared in a separate class and have the resolution of the Screen.  I just need to change the DPI of the Bitmaps.
    Thursday, May 03, 2007 9:32 AM