Last post Feb 25, 2013 04:37 AM by prabu.raveendran
Feb 23, 2013 08:40 AM|Manirul Islam|LINK
i use win 7 vs2008 . when i click button crystal report will print
this is my code
public partial class BookingReceiptList : System.Web.UI.Page
public ReportDocument crystalReport = new ReportDocument();
protected void Page_Load(object sender, EventArgs e)
("", "", @"MONIR-PC\SQLEXPRESS", "afrindb");
string project1 = Convert.ToString(Session["BokingMoney"]);
CrystalReportViewer1.ReportSource = crystalReport;
crystalReport.PrintToPrinter(1, false, 0, 0);
its not workiny any help
its getting error
No printers are installed.
Feb 25, 2013 04:25 AM|Pankaj.Sharma|LINK
The error is pretty obvious that tells that no printer has been configured on the current machine. You add a printer on the machine and make it default, so this method will always try to connect to a default printer and get the report print.
What is your case when no printer is actually connected to the machine, and/or configured on the machine?
Feb 25, 2013 04:37 AM|prabu.raveendran|LINK
Check whether printer is installed in your system. If you like to check whether it prints the data or not you just use export option of crystal report and then check the exported file.