Orientation 屬性

此頁沒有內(nèi)容條目
內(nèi)容

expandtri全部顯示

blueup應(yīng)用于 Printer 對象的 Orientation 屬性。

使用 Orientation 屬性可以指定或確定打印方向。AcPrintOrientation,可讀寫。

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

acPRORLandscape

acPRORPortrait

expression.Orientation

expression     必需。返回以上對象之一的表達式。

blueup應(yīng)用于 FormReport 對象的 Orientation 屬性。

使用 Orientation 屬性可以指定或確定視圖方向。Byte 型,可讀寫。

expression.Orientation

expression     必需。返回以上對象之一的表達式。

說明

Orientation

設(shè)置

Visual Basic

說明

從左到右

0

將查看方向設(shè)置為從左到右。

從右到左

1

將查看方向設(shè)置為從右到左。

屬性表Visual Basic

示例

blueup應(yīng)用于 Printer 對象的 Orientation 屬性。

下面的示例將打印方向設(shè)置為橫向。

Printer.Orientation = acPROLandscape

blueup應(yīng)用于 FormReport 對象的 Orientation 屬性。

下面的示例將“采購訂單”報表的視圖方向設(shè)置為從右到左。

Reports("Purchase Order").Orientation = 1