Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Datareports

Status
Not open for further replies.

robman70

Technical User
Aug 6, 2002
90
I was wondering if it was possible (and if so, how) to send a datareport straight to a specific printer. The only way I've worked with datareports is to show it (datareport.show) then you have to click the print button, then select a printer and hit print. I would like a way to just hit print from the form and it not give any preview just go straight to a printer i specify in the project because this is for printing labels (4 x 6) and it has to go to a label printer. Any help appreciated
 
You will need to set the default printer to the printer you want to print the report to and then do a

DataReport1.PrintReport False

If you do not know how to set the default printer then you can do a search on this forum for 'Change Default Printer' and find many posts regarding how to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top