This topic has not yet been rated - Rate this topic

ItemSizeHeight Property [Access 2003 VBA Language Reference]

Office 2003

Returns or sets a Long indicating the height of the detail section of a form or report in twips. Read/write.

expression.ItemSizeHeight

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

If the DefaultSize property is True, this property is ignored.

Example

The following example sets a variety of printer settings for the form specified in the strFormname argument of the procedure.

Sub SetPrinter(strFormname As String)

    DoCmd.OpenForm FormName:=strFormname, view:=acDesign, _
                   datamode:=acFormEdit, windowmode:=acHidden
    
    With Forms(form1).Printer
    
        .TopMargin = 1440
        .BottomMargin = 1440
        .LeftMargin = 1440
        .RightMargin = 1440
    
        .ColumnSpacing = 360
        .RowSpacing = 360
    
        .ColorMode = acPRCMColor
        .DataOnly = False
        .DefaultSize = False
        .ItemSizeHeight = 2880
        .ItemSizeWidth = 2880
        .ItemLayout = acPRVerticalColumnLayout
        .ItemsAcross = 6
    
        .Copies = 1
        .Orientation = acPRORLandscape
        .Duplex = acPRDPVertical
        .PaperBin = acPRBNAuto
        .PaperSize = acPRPSLetter
        .PrintQuality = acPRPQMedium
    
    End With
    
    DoCmd.Close objecttype:=acForm, objectname:=strFormname, _
                Save:=acSaveYes


End Sub

		


Applies to | Printer Object



Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.