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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print via CrystalReportViewer without printerselection-Window?

Status
Not open for further replies.

spjansen

Programmer
Joined
Jul 7, 2003
Messages
4
Location
DE
Hi,
I have to print Crystal Report 8.5 Forms and I am doing this with the CrystalReportViewer in vb.net.

CrystalReportViewer.PrintReport()

The problem is, that I have to print a lot of reports and I dont want the printer selection window to pop up each time.
I am not talking about 10 times the same report, bur ten different reports.
How can I suppress the window?
 
Look into the .PrintPages method. You can set the printer and tray first then use print pages to send the report to the printer. (Hint, use 999999 for number of pages)

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Thanks for the reply, but there is no .PrintPages Method in my CrystalReportViewer component. I am not really a vb.net programmer and dont know the terminology. What I have done is, that I took the CrystalReportViewer-thing (customcontrol ?) from the left-side menu and put it on my form and this thing doesnt know the method .Printpages
What should I have done different?
 
it's working!
I never took a look at the methods of the ReportDocument, only at the CrystalReportViewer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top