I have a printer named XER. How can I print directly to a printer? I'm sharing my code here.
I want to print directly from my printer named XER without previewing..
thank you for your help?
private void reportViewer1_Load(object sender, EventArgs e)
var mfrm = (Frm_Giris) Application.OpenForms["Frm_Giris"];
if (mfrm != null)
var rap = new Prt_AYazdir();
rap.a.Value = alma.ToString();
rap.b.Value = bal.ToString();
rap.c.Value = tarih.ToString();
rap.borc.Value = borc.ToString();
rap.sqlDataSource1.ConnectionString = mfrm.serveryolu;
var ss = "a";
ss = "select * from xxxx where id='" + aid + "' order by id asc; ";
rap.sqlDataSource1.SelectCommand = ss;
var reportSourcea = new Telerik.Reporting.InstanceReportSource();
reportSourcea.ReportDocument = rap;
reportViewer1.ReportSource = reportSourcea;