Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
Printer.EndDoc
I am using this code to Print the contents of an msflexgrid, is there a way to print landscape instead of portrait. Thanks.
Printable View
Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
Printer.EndDoc
I am using this code to Print the contents of an msflexgrid, is there a way to print landscape instead of portrait. Thanks.
you can set the printer paper orientation by the following code:
Printer.Orientation = vbPRORLandscape OR
Printer.Orientation = 2
Note:
1 = vbPRORPortrait
2 = vbPRORLandscape
Good Luck :)