title: Crystal Reports printing client side C#
body: <p>I have a report that I want to fire off based on a button in a GridView.  This will generate a label and send it to an attached (local) Zebra printer.  When I run this locally, it works fine.  The printer doesn't even have to be the default.  When I copy the files to the server, and click the Print button nothing happens.  </p>
  
  <pre><code>        CrystalReportSource CrystalReportSource1 = new CrystalReportSource();
          CrystalReportViewer CrystalReportViewer1 = new CrystalReportViewer();
          CrystalReportViewer1.HasPrintButton = true;
          // CrystalReportViewer1.PrintMode = "ActiveX";
  
          CrystalReportViewer1.ReportSource = CrystalReportSource1;
          CrystalReportViewer1.EnableParameterPrompt = false;
  
          CrystalReportSource1.Report.FileName = "BinLocation2.rpt";
          TableLogOnInfo logOnInfo = new TableLogOnInfo();
  
          CrystalReportSource1.ReportDocument.SetParameterValue(0, Item);
          CrystalReportSource1.ReportDocument.SetParameterValue(1, binlocation);
          CrystalReportSource1.ReportDocument.SetParameterValue(2, Lot);
          CrystalReportSource1.ReportDocument.SetParameterValue(3, expiredate);
          CrystalReportSource1.ReportDocument.SetParameterValue(4, NDC);
  
  
          logOnInfo.ConnectionInfo.ServerName = ConfigurationManager.AppSettings["SalesReportServerName"];
          logOnInfo.ConnectionInfo.DatabaseName = ConfigurationManager.AppSettings["SalesReportDatabaseName"];
          logOnInfo.ConnectionInfo.UserID = ConfigurationManager.AppSettings["SalesReportUserID"];
          logOnInfo.ConnectionInfo.Password = ConfigurationManager.AppSettings["SalesReportPassword"];
  
          TableLogOnInfos infos = new TableLogOnInfos();
          infos.Add(logOnInfo);
          CrystalReportViewer1.LogOnInfo = infos;
  
          try
          {
  
              CrystalReportSource1.ReportDocument.PrintToPrinter(1, false, 0, 0);
          }
  </code></pre>
  
  <p>I installed the redist packages for Visual Studio.  Compared the web.config files.  The printer is not installed on the server, but I want this done on the client side (with no prompt to print).  Is there a better way to go about doing this? What am I missing?</p>