Click or drag to resize

DrawingHandlerPrintDrawing(Drawing, PrinterAttributes, String) Method

返回用户文档首页
将图纸打印到文件,使用指定的打印机属性和输出文件名。 输出文件会覆盖打印机属性中的文件设置。

Namespace: LoongCAD.STC.Friendly.Drawing
Assembly: LoongCAD.STC.Friendly (in LoongCAD.STC.Friendly.dll) Version: 2026.0.9.25 (2026.0.9.25)
Syntax
C#
public bool PrintDrawing(
	Drawing drawing,
	PrinterAttributes printerAttributes,
	string outputFileName
)

Parameters

drawing  Drawing
要打印的图纸
printerAttributes  PrinterAttributes
打印机属性
outputFileName  String
输出文件名

Return Value

Boolean
打印成功返回 true
See Also