C
CyberCyclist
There are many good examples of printing using the
PrintDocument class. However, I can't find any mention of
printer offsets. For example, printing something at
100,100 will display in the print preview window one inch
(display inches) from the upper left corner. If the same
thing is sent to the printer, it is printed more than one
inch from the corner because most printers have a
printable area that doesn't go right to the edge. The
problem is that printers all have slightly different
printable areas. In VB 98, it was easy because you could
set the scale mode of the printer to inches and get a
scale width and height that was slightly smaller than the
width of the paper allowing you to adjust the margins.
Anyone know how to retrieve the printable area in .NET?
Thanks in advance
PrintDocument class. However, I can't find any mention of
printer offsets. For example, printing something at
100,100 will display in the print preview window one inch
(display inches) from the upper left corner. If the same
thing is sent to the printer, it is printed more than one
inch from the corner because most printers have a
printable area that doesn't go right to the edge. The
problem is that printers all have slightly different
printable areas. In VB 98, it was easy because you could
set the scale mode of the printer to inches and get a
scale width and height that was slightly smaller than the
width of the paper allowing you to adjust the margins.
Anyone know how to retrieve the printable area in .NET?
Thanks in advance