Orientation 属性

expandtri全部显示

blueup应用于 Printer 对象的 Orientation 属性。

使用 Orientation 属性可以指定或确定打印方向。AcPrintOrientation,可读写。

AcPrintOrientation 可以是下列 AcPrintOrientation 常量之一:

acPRORLandscape

acPRORPortrait

expression.Orientation

expression     必需。返回以上对象之一的表达式。

blueup应用于 FormReport 对象的 Orientation 属性。

使用 Orientation 属性可以指定或确定视图方向。Byte 型,可读写。

expression.Orientation

expression     必需。返回以上对象之一的表达式。

说明

Orientation

设置

Visual Basic

说明

从左到右

0

将查看方向设置为从左到右。

从右到左

1

将查看方向设置为从右到左。

属性表Visual Basic

示例

blueup应用于 Printer 对象的 Orientation 属性。

下面的示例将打印方向设置为横向。

Printer.Orientation = acPROLandscape

blueup应用于 FormReport 对象的 Orientation 属性。

下面的示例将“采购订单”报表的视图方向设置为从右到左。

Reports("Purchase Order").Orientation = 1