- 积分
- 764
- 明经币
- 个
- 注册时间
- 2004-6-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-12-30 13:09:00
|
显示全部楼层
'=================================== '=================================== '========如果有打印任务============= '=================================== '=================================== DoEvents If Check4.Value = 1 Then cadmessage.Label7.Caption = "正在设置打印机。。。。。。" '6,设置打印设备 dwgfile.ActiveLayout.ConfigName = Combo2.Text '7,设置打印模式 dwgfile.ActiveLayout.StyleSheet = Combo3.Text '1,图纸尺寸与单位 dwgfile.ActiveLayout.CanonicalMediaName = Combo4.Text dwgfile.ActiveLayout.PaperUnits = acMillimeters '2,调整打印原点 Dim BASEPIONT As Variant BASEPIONT = dwgfile.ActiveLayout.PlotOrigin dwgfile.ActiveLayout.CenterPlot = True '3,设置打印区域 dwgfile.ActiveLayout.PlotType = acExtents '4,设置打印比例 dwgfile.ActiveLayout.StandardScale = acScaleToFit '5,设置线宽比例 dwgfile.ActiveLayout.ScaleLineweights = False '建议不要设置线宽缩放 dwgfile.ActiveLayout.PlotRotation = ac90degrees '打印机已选择 cadmessage.Label7.Caption = "正在打印。。。。。。" dwgfile.Plot.PlotToDevice '开始打印 End If |
|