Page.Width 属性 (Access)Page.Width property (Access)

获取或设置指定对象的宽度,以缇为单位。Gets or sets the width of the specified object in twips. 读/写IntegerRead/write Integer.

语法Syntax

expressionexpression. Width

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

说明Remarks

对于报表控件,您可以打印或预览只能通过使用宏或事件过程指定节的OnFormat事件属性设置中的报表时设置Width属性。For report controls, you can set the Width property when you print or preview a report only by using a macro or an event procedure specified in a section's OnFormat event property setting.

开始打印后,就不能再设置对象的这一属性。You can't set this property for an object once the print process has started.

Microsoft Access 会自动设置Width属性,当您创建或调整控件大或当大小窗体设计视图中的窗口或报表设计视图。Microsoft Access automatically sets the Width property when you create or size a control or when you size a window in form Design View or report Design view.

窗体和报表的宽度是从边框的内侧开始测量的。The width of forms and reports is measured from the inside of their borders. 控件的宽度是从边框的中心开始测量的,因此边框宽度各不相同的控件能够正确对齐。The width of controls is measured from the center of their borders so controls with different border widths align correctly. 中,单击文件菜单上的页面设置****页面设置对话框中设置窗体和报表的边距。The margins for forms and reports are set in the Page Setup dialog box, available by clicking Page Setup on the File menu.

另请参阅See also

Page 对象Page Object