VSFlexGrid.PrintGrid
VSFlexGrid.PrintGrid
(OP)
I am trying to print the FlexGrid I just created. I know the syntax is:
VSFlexGrid1.PrintGrid
After the .PrintGrid you can specify the title, orientation, ect. I am trying to change the orientation from portrait to landscape and cant figure out how to do it. Thanks in advance for any help.
Brian
VSFlexGrid1.PrintGrid
After the .PrintGrid you can specify the title, orientation, ect. I am trying to change the orientation from portrait to landscape and cant figure out how to do it. Thanks in advance for any help.
Brian





RE: VSFlexGrid.PrintGrid
VSFlexGrid1.PrintGrid(
Then the list of settings will come up tooltip style.
And of course there is the help file, from which:
Syntax
[form!]VSFlexGrid.PrintGrid [ DocName As String ], [ ShowDialog As Boolean ], [ Orientation As Integer ], [ MarginLR As Long ], [ MarginTB As Long ]
Remarks
The parameters for the PrintGrid method are described below:
DocName As String (optional)
Contains the name of the document being printed. This string appears in the printer window's job list and is also used as a footer.
ShowDialog As Variant (optional, default value = False)
If set to True, a printer selection/setup dialog is displayed before the document start printing. The user can then select which printer to use, page orientation etc.
Orientation As Variant (optional, default value = printer default)
Set this parameter to 1 to print the grid in Portrait mode, or set it to 2 to print the grid in Landscape mode. The default setting, zero, uses the default printer orientation.
MarginLR As Variant (optional, default value = 1440)
Left and right margins, in twips. The margins must be equal. The default value, 1440, corresponds to a one-inch margin.
MarginTB As Variant (optional)
Top and bottom margins, in twips. The margins must be equal. The default value, 1440, corresponds to a one-inch margin.