星期五, 8月 15, 2025

[RV] 指定列印份數

實務上遇上列印內容不變的標籤,不需要塞資料進去,直接指定份數來達到列印多張標籤
ReportViewer.PrinterSettings.Copies = 指定份數;

PrinterSettings.Copies 屬性 文件有特別提到,並不是每台印表機都支援該屬性的
Not all printers support printing multiple copes. You can use the MaximumCopies property to determine the maximum number of copies the printer supports. If the number of copies is set higher than the maximum copies supported by the printer, only the maximum number of copies will be printed, and no exception will occur.

沒有留言:

張貼留言