PDA

View Full Version : Code for printing



Kundan
02-28-2019, 09:44 PM
Can we define the no. of copies of a report/form to be printed through code?

OBP
03-01-2019, 02:47 AM
You can use the docmd openreport to open the report in print preview mode and then use docmd printout to print a number of copies and then docmd close to close the report.

Or you can set a loop to count how many copies you want and then use domcd openreport in normal mode which sends it directly to the printer with no print preview.

Kundan
03-03-2019, 10:32 PM
You can use the docmd openreport to open the report in print preview mode and then use docmd printout to print a number of copies and then docmd close to close the report.

Or you can set a loop to count how many copies you want and then use domcd openreport in normal mode which sends it directly to the printer with no print preview.



Thanks a lot!!!!!!!! GOD BLESS YOU!!!!!!!!!!!