Download Data Widgets User`s Manual

Transcript
Data Widgets 3.12 User’s Manual
Page 261
'Indicate that we do not want to print colors.
'(Use True to print colors or shades
'of gray on a non-color printer).
ssPrintInfo.PrintColors = False
'Print the column headers.
ssPrintInfo.PrintColumnHeaders = ssUseCaption
'The only grid lines we want to print are to separate groups.
'(There are other options to print various types of grid lines.)
ssPrintInfo.PrintGridLines = ssPrintGridLinesColGrpHeadsOnly
'Print column and group headers at the top of each page.
'(Use ssTopOfReport if you want the headers
'to appear on the first page.)
ssPrintInfo.PrintHeaders = ssTopOfPage
End Sub
PageFooterFont Property
Applies To
SSDBGrid
Description
Determines which font will be used for the page footer of a printout.
Syntax
object.PageFooterFont[= font]
Part
Description
object
An object expression that evaluates to an object or a control in the Applies To list.
font
A string expression that evaluates to the Font object that will be used to print the footer text.
Remarks
You can use the PageFooterFont property to specify the attributes of the page footer text. Because this property
returns a reference to a Font object, you can use it to specify any property of that object. For example, to make the
footer font bold, you would use the following code:
SSDBGrid1.PageFooterFont.Bold = True
See Also
PageFooter, PageHeaderFont
Example
This code is called when the form's "Print" button is clicked. It sets footer and header fonts then prints print the
grid twice - once to print just selected rows (also specifying that the Print Setup dialog not be displayed but the
Print dialog should be displayed) then again to print the entire grid with no print dialogs.
Note that other parameters can be set in the PrintInitialize event