How are you setting the number of copies using -p? I could not see a LabVIEW option to set this number. It can be set on the printer properties, however, but this is printer-specific and has no reference to LabVIEW. It is possible that the printer will keep that setting for as long as LabVIEW is open, but again, that is printer specific.Right - that's exactly what's happening.
It looks like in the way olden days, Win32 printer properties involved the "WINSPOOL.DRV" driver, and were difficult to access. It looks like maybe the number of copies was set via something called "dmCopies" ["DM_COPIES"] buried deep within a structure called "DEVMODE" which lived somewhere in the bowels of the Win32 printing and print spooling infrastructure:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_8nle.asp?frame=trueThe bottom line being that it doesn't look like the Win32 API relied on any sort of "number of copies" setting in the Registry, or stored any such information there for future reference.
In .NET, it looks like Microsoft has tried to "objectify" all of this, and now there's a "Copies" property in System.Drawing.Printing.PrinterSettings:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawingprinti...Even in .NET, however, Microsoft still issues the warning
Note Some printers might not support printing more than one copy at a time.
Anyway, like I indicated in a previous post to this thread, LabVIEW's "Print Report.vi" [which lives in "Functions Palette | All Functions | Report Generation"] does have an I32 input that allows you to set the "number of copies". It would be really nice if this same functionality were added to "Easy Print VI Panel or Documentation.vi", or if it were exposed somehow in the printing properties of "Invoke Node | Print VI to Printer" so that it could then be used by "Easy Print VI Panel or Documentation.vi".
Thanks!