when a datareport show, there has a button to print the page manually. I want when I click the button (to show the data report,it will not show), the page print directly. I don't want to show data report and don't click that button (print) in this page.

You can print the report directly for example...

private sub cmdshow_click()
DataReport1.PrintReport False, rptRangeAllPages
DataReport1.Hide
end sub
------------------------------------------------
I hope that it will help you..

i got it.
Printer.Print Text1.Text

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.