如何在VB程序中设置打印机是横打或纵打

bluesky1980 2003-12-16 09:34:25
望指教
谢谢
...全文
84 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Sean918 2003-12-17
  • 打赏
  • 举报
回复
Orientation Property


Returns or sets a value indicating whether documents are printed in portrait or landscape mode. Not available at design time.

Syntax

object.Orientation [= value]

The Orientation property syntax has these parts:

Part Description
Object An object expression that evaluates to an object in the Applies To list.
Value A value or constant that determines the page orientation, as described in Settings.


Settings

The settings for value are:

Constant Value Description
vbPRORPortrait 1 Documents are printed with the top at the narrow side of the paper.
vbPRORLandscape 2 Documents are printed with the top at the wide side of the paper.


Remarks

These constants are listed in the Visual Basic (VB) object library in the Object Browser.

Note The effect of the properties of the Printer object depends on the driver supplied by the printer manufacturer. Some property settings may have no effect, or several different property settings may all have the same effect. Settings outside the accepted range may or may not produce an error. For more information, see the manufacturer's documentation for the specific driver.

planetike 2003-12-17
  • 打赏
  • 举报
回复
PRINTER.ORIENTATION=2
jhzhou882 2003-12-17
  • 打赏
  • 举报
回复
Printer.Orientation = vbPRORLandscape
VCSQLVB 2003-12-17
  • 打赏
  • 举报
回复
ORIENTATION=2
muchtrouble2003 2003-12-16
  • 打赏
  • 举报
回复
建议看看vb自带的对象浏览器,写得很清楚的
bluesky1980 2003-12-16
  • 打赏
  • 举报
回复
是设置PRINTER的ORIENTATION=2为横打吗?

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧