您好,
是的,我注释掉了CanonicalMediaName行,它成功了,但它在横向页面上打印了肖像。然后,我将PlotRotation线更改为1,而不是AC90度,并保留CanonicalMediaName线,它做了相同的操作-在横向页面上绘制肖像。下面是我检查图形的模型空间打印设置的一个小例程,运行后,CanonicalMediaName显示为A4,PlotRogation线显示为1- ' Get the current plot settings for the drawing..
- Sub GetPlotSettings()
-
- Dim PlotTypeX As String
- PlotTypeX = ThisDrawing.ModelSpace.Layout.PlotType
-
- MsgBox _
- "The Plotter for the active layout is: " & ThisDrawing.ModelSpace.Layout.ConfigName & vbCr & _
- "The PlotStyle for the active layout is: " & ThisDrawing.ModelSpace.Layout.StyleSheet & vbCr & _
- "The Media (paper size) for the active layout is: " & ThisDrawing.ModelSpace.Layout.CanonicalMediaName & vbCr & _
- vbCr & _
- "The Scale for the active layout is: " & ThisDrawing.ModelSpace.Layout.StandardScale & vbCr & _
- "The Units for the active layout is: " & ThisDrawing.ModelSpace.Layout.PaperUnits & vbCr & _
- "The Plot Type for the active layout is: " & PlotTypeX & vbCr & _
- "The Plot Rotation for the active layout is: " & ThisDrawing.ModelSpace.Layout.PlotRotation _
- , vbInformation, "Get Plot Settings: " & ThisDrawing.Name
- End Sub
所以,谢谢你的回复,至少它没有';这次我不崩溃,现在只需要整理一下方向。有什么想法吗
干杯,Paul,basepointdesignzltd。。 |