How can I print a LocalReport without preview but with a printer selection window?
Thx.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can make your own Form with a printer selection. Bind the installed printers to a combobox or something using the
System.Drawing.Printing.PrinterSettingsclassThen you can create your report with this code (make sure your reports build action is set to embedded resource)
Then follow these instructions here to print a localreport:
http://blogs.msdn.com/b/brianhartman/archive/2009/02/27/manually-printing-a-report.aspx
Make sure you somehow pass the variable of the printer to use into the printing class. The printers name must be set: