乐筑天下

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

ActiveLayout.StyleSheet

[复制链接]

12

主题

24

帖子

4

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
72
发表于 2006-4-13 09:27:00 | 显示全部楼层 |阅读模式
ThisDrawing.ActiveLayout.StyleSheet = "monochrome.ctb"
为什么出错?
回复

使用道具 举报

12

主题

24

帖子

4

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
72
发表于 2006-4-13 13:20:00 | 显示全部楼层
Public Sub printdoc()
Dim point1(100) As Variant
Dim point2 As Variant, point3 As Variant, point4(0 To 1) As Variant
Dim keywordList As String
On Error Resume Next
With ThisDrawing.ActiveLayout
.StyleSheet = "monochrome.ctb"
.CenterPlot = True
.PlotRotation = ac90degrees
.PaperUnits = acMillimeters
.CanonicalMediaName = "A4"
.ConfigName = "HP LaserJet 5100 Series"
End With
point2 = ThisDrawing.Utility.GetPoint(, vbLf & "请点击打印区域的左下角:")
i = 0
Do While i  Int(point2(1))) Then
  i = i + 1
  point1(i) = point2
  End If
Loop
Number = ThisDrawing.Utility.GetInteger("Enter an number of the pages: ")
point2 = point1(0)
point3 = point1(1)
ReDim Preserve point2(0 To 1)
ReDim Preserve point3(0 To 1)
For j = 0 To Number - 1
point2(0) = point2(0) + (point3(0) - point2(0)) * j
point3(0) = point3(0) + (point3(0) - point2(0)) * j
ThisDrawing.ActiveLayout.CenterPlot = True
ThisDrawing.ActiveLayout.SetWindowToPlot point2, point3
ThisDrawing.Plot.NumberOfCopies = 1
ThisDrawing.ActiveLayout.PlotType = acWindow
ThisDrawing.Plot.DisplayPlotPreview acFullPreview
Next j
End Sub
为什么不能居中打印,还要设什么?
回复

使用道具 举报

12

主题

24

帖子

4

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
72
发表于 2006-4-13 13:30:00 | 显示全部楼层
问题解决了
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-5 10:52 , Processed in 0.974759 second(s), 59 queries .

© 2020-2025 乐筑天下

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