Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

VSFlexGrid.PrintGrid 1

Status
Not open for further replies.

Creigbm

Mechanical
Aug 1, 2003
161
US
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
 
Replies continue below

Recommended for you

In VB, all you should need to do is type
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.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top