Frequently, my users need to print multipage tiff files of reports that have a 0.5 inch margin all the way around. When I use ieIO.PrintImage with iesFITTOPAGE, it produces a printout with a one inch margin. I'm guessing the extra half inch margin is coming from printer.canvas, which gets it from the printer? In other words, my 8.5x11 inch image is being squeezed down to 7.5x10 inch so that printer.canvas can have its own 0.5 inch margin? Here is the code:
ieIO.PrintImage(Printer.Canvas,0,0,0,0,ievpCenter,iehpCenter,iesFITTOPAGE,0,0,1);
Same result if I use iesNORMAL, iesFITTOPAGESTRETCH or iesSPECIALSIZE.
My goal is to get a printout of the reports that looks like the same size as the original (same 0.5 inch margins).
I'm hoping someone has a suggestion.
Thanks. |