crystal report

spooke

New member
Joined
Jun 9, 2003
Messages
4
Location
england _south west
I have written a program which when an order closes needs to be printed onto a crystal report. The issue is i want the report to print automatically so basically what i am asking is what coding would you use to send the crystal report to the printer automatically and print with out asking the user if they wish to print.

i have recently come up from vb6 am still learning basics of .net

thanx in advance

spooke
 
You would use something like this:

Code:
myReport.PrintToPrinter(1,True,1,999)

This will print to the default printer.

Parameters are:

Number of copies
Collatation Flag
Start Page
End Page (use 999) as an upper limit

Also see the PrintOptions Method
 
Back
Top