分配NumberOfCopies属性以告知IronPrint在一次打印作业中应生成多少相同的文档副本。 这消除了在循环中调用 print 方法的必要,并让打印机驱动程序能够高效地处理排序。
请注意,在某些平台上,驱动程序可能无法满足请求的打印份数,并将默认打印一份。 请务必在目标环境中进行测试,以确认对多副本的支持。 对于大批量场景,例如打印会议资料或仓库拣货单,此属性显著简化了工作流程。
查看 IronPrint 的《副本数量操作指南》using IronPrint;
// Print three copies of the document
PrintSettings printSettings = new PrintSettings();
printSettings.NumberOfCopies = 3;
Printer.Print("form-document.pdf", printSettings);
Imports IronPrint
' Print three copies of the document
Dim printSettings As New PrintSettings()
printSettings.NumberOfCopies = 3
Printer.Print("form-document.pdf", printSettings)Imports IronPrint
' Print three copies of the document
Dim printSettings As New PrintSettings()
printSettings.NumberOfCopies = 3
Printer.Print("form-document.pdf", printSettings)分配NumberOfCopies属性以告知IronPrint在一次打印作业中应生成多少相同的文档副本。 这消除了在循环中调用 print 方法的必要,并让打印机驱动程序能够高效地处理排序。
请注意,在某些平台上,驱动程序可能无法满足请求的打印份数,并将默认打印一份。 请务必在目标环境中进行测试,以确认对多副本的支持。 对于大批量场景,例如打印会议资料或仓库拣货单,此属性显著简化了工作流程。
查看 IronPrint 的《副本数量操作指南》NuGet 下载量 52,427|版本:2026.11刚刚发布