大家帮忙分析一下这段代码,设置PlotType出错!
<p> With acadDoc.ModelSpace.Layout </p><p> '设置打印机和纸张尺寸<br/> .ConfigName = PrintDriver<br/> .CanonicalMediaName = PaperSize<br/> <br/> '打印范围<br/> .SetWindowToPlot pLowLeft, pUpRight<br/> <font color="#ff0033">.PlotType = acWindow '这里出错,前面都运行正常</font></p><p> '打印样式和单位<br/> .PlotWithPlotStyles = True<br/> .StyleSheet = "acad.ctb"<br/> .PaperUnits = acMillimeters<br/> <br/> <br/> '按图纸空间缩放并居中打印<br/> .StandardScale = acScaleToFit<br/> .CenterPlot = True</p><p>end with</p><p></p><p>请高手帮忙啊,感谢!</p>
页:
[1]