title: Print Document pdf c#
body: <p>I'm creating a pdf file this is my code:</p>
  
  <pre><code> public ActionResult ImprimirPedido()
          {
  
              List&lt;ReporteModel&gt; lista = new List&lt;ReporteModel&gt;();
  
              ReporteModel obj = new ReporteModel();
              obj.Responsable = "juan peres";
              obj.TipoPago = "Efectivo";
              obj.Fecha = "02/05/2014";
              obj.NombreProducto = "chocolate";
              obj.Cantidad = "2";
              obj.Total = "54.00";
  
              lista.Add(obj);
  
  
              string directorio = "~/Models/";
              string urlarchivo = string.Format("{0}.{1}", "Reporte_Disenio", "rdlc");
  
              string fullpath = string.Format("{0}{1}", this.HttpContext.Server.MapPath(directorio), urlarchivo);
  
              ReportViewer repor = new ReportViewer();
  
              repor.Reset();
              repor.LocalReport.ReportPath = fullpath;
              ReportDataSource data = new ReportDataSource("DS_REPORT", lista);
              repor.LocalReport.DataSources.Add(data);
              repor.LocalReport.Refresh();
  
              byte[] file = repor.LocalReport.Render("PDF");
  
              return File(new MemoryStream(file).ToArray(),
                  System.Net.Mime.MediaTypeNames.Application.Octet,
                  string.Format("{0}{1}", "archivo.", "PDF"));
  
          }
  </code></pre>
  
  <p>Now I want to print directly on the printer without preview, the printer is installed on my pc with iis. here run my systema mvc4 .net.</p>