Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing multiple copies of a report programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00695143
Message ID:
00695292
Views:
30
Yuri,

The following information should help to understand why some printers work printing multiple copies and others do not including the earlier threads that were referred to above. Not all printers support printing multiple COPIES. Therefore, it will not always be present in the EXPR field when the report is created/designed and this makes it bad if you are switching printers on the fly. There is an API call that allows you to find out how many COPIES a printer driver supports. If you pass null as the last 2 parameters the routine will return the number of COPIES that the device can print.


nCopiesPrinterCanPrint = DeviceCapabilitiesA(PDeviceName,PPort,DC_COPIES,null,null);

PPrinterName = Pointer to the Printer Name null terminated String
PPort = Pointer to the Device Port Name null terminated String
DC_COPIES = 18 API CONSTANT

Therefore to be 100% reliable in printing multiple copies you should send the output in a loop. You could also send the barcode output using WIN API calls rather than a Report for speed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform