Printer.ItemsAcross 属性 (Access)Printer.ItemsAcross property (Access)

返回或设置一个Long指示的列数打印跨多列报表或标签的页面。Returns or sets a Long indicating the number of columns to print across a page for multiple-column reports or labels. 为可读/写属性。Read/write.

语法Syntax

expressionexpression. ItemsAcross

_表达式_一个代表Printer对象的变量。expression A variable that represents a Printer object.

示例Example

下面的示例为过程的 strFormname 参数中指定的窗体设置各种打印机设置。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

另请参阅See also

打印机对象Printer Object