ACC1x: Description of PrtMip Property
ID: Q109407
|
The information in this article applies to:
-
Microsoft Access versions 1.0, 1.1
SUMMARY
This article is a copy of the PrtMip property documentation from the "The
Secrets of Access Wizards" manual that is included with the Microsoft
Access Distribution Kit documentation.
This article assumes that you are familiar with Access Basic and with
creating Microsoft Access applications using the programming tools
provided with Microsoft Access. For more information on Access Basic,
please refer to the "Introduction to Programming" manual.
MORE INFORMATION
The PrtMip property setting is read-write in Design view, and read-only
in other views.
PrtMip Property
Applies To Reports.
Description Sets and returns information from print setup for a
report.
Setting The PrtMip property setting is a 24-character string
that maps to the print setup information displayed after
you press the More button. It takes the following
settings:
Setting Description
--------------------------------------------------------
Left, Top, Integer for each. The margin settings
Right, specify the distance in inches or
Bottom Margin centimeters between the edge of the page
and the item to be printed.
Data Only Integer. Print only the data in a report
without borders, gridlines, or display
graphics. The value can be True (-1) or
False (0).
Item Size Integer. The report width in inches or
Width centimeters.
Item Size Integer. The report height in inches or
Height centimeters.
Default Size Integer. True (-1) if the same as the
size of the detail section and False (0)
if defined by the item size width and
height.
Items Across Integer. Defines the number of columns
across for multiple-column reports or
labels.
Row Spacing Integer. The space between detail rows in
inches or centimeters.
Column Integer. The space between detail columns
Spacing in inches or centimeters.
Item Layout Integer. Horizontal (1) or Vertical (2)
layout of report columns.
Example Reads the device and margin information, resets the page
orientation, and halves the margins.
Sub PrtSetUpdemo (szReport$)
' The structures defined in the zwAlGlobals module.
Dim dm As zwtDevModeStr
Dim DevMode As zwtDeviceMode
Dim mip As zwfMIPSTR
Dim mi As zwfMarginInfo
' Read DeviceMode info.
dm.rgb = Reports(szReport).PrtDevMode
LSet DevMode = dm
' If the current orientation is portrait then . . .
If DevMode.dmOrientation = 1 Then
' Change it to landscape.
DevMode.dmOrientation = 2
Else
' Else change it to portrait.
DevMode.dmOrientation = 1
End If
LSet dm = DevMode
' Write the device mode information.
Reports(szReport).PrtDevMode = dm.rgb
' Read margin info.
mip.rgb = Reports(szReport).PrtMip
LSet mi = mip
' Make all margins smaller.
mi.xLeftMargin = mi.xLeftMargin / 2
mi.xRightMargin = mi.xRightMargin / 2
mi.yTopMargin = mi.yTopMargin / 2
mi.yBotMargin = mi.yBotMargin / 2
LSet mip = mi
' Write the new margin info.
Reports(szReport).PrtMip = mip.r
End Sub
The variables and constants that begin with "zw" are defined in the
zwAllGlobals module in WIZARDS.MDA.
REFERENCES
Microsoft Access "The Secrets of Access Wizards," pages 27-28
Additional query words:
PtrIss
Keywords :
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbinfo