Well, if you define a printer object, you can set its margin.
Dim prtPrinter As Printer
prtPrinter.LeftMargin = 1440
This assumes that prtPrinter is your default printer. You can set .BottomMargin, .TopMargin, .LeftMargin, and .RightMargin. Note that the measurement is in twips.
1 inch = 1440 twips
1 centimeter = 567 twips
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|