乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 24|回复: 1

如何居中打印

[复制链接]

17

主题

38

帖子

2

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
106
发表于 2004-11-14 13:03:00 | 显示全部楼层 |阅读模式
Dim Point1 As Variant, Point2 As Variant
                                
                         Point1 = ThisDrawing.Utility.GetPoint(, "Click the lower-left of the window to plot.")
                         ReDim Preserve Point1(0 To 1)                 ' Change this to a 2D array by removing the Z position
                                
                         Point2 = ThisDrawing.Utility.GetPoint(, "Click the upper-right of the window to plot.")
                         ReDim Preserve Point2(0 To 1)                 ' Change this to a 2D array by removing the Z position
                         ThisDrawing.ActiveLayout.CenterPlot = True
                                
                         ThisDrawing.ActiveLayout.SetWindowToPlot Point1, Point2
                                
                         ThisDrawing.ActiveLayout.PlotType = acWindow
                                
                         ThisDrawing.Plot.DisplayPlotPreview acFullPreview
为什么不能居中???大家帮忙
回复

使用道具 举报

72

主题

2726

帖子

9

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3014
发表于 2004-11-15 14:15:00 | 显示全部楼层
我试过了,是居中的,:)
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-16 13:51 , Processed in 0.504699 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表