PDA

Click to See Complete Forum and Search --> : Using this Code for Msflexgrid


Ed_Farias
Mar 21st, 2000, 06:15 AM
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.

Chris
Mar 21st, 2000, 01:44 PM
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 :)