Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying to print report on dot matrix printer but it gives me exception and same report is printed on digital printer.
Is there any setting or have to write code to rint on dot matrix printer from microsoft RDLC report.
below is my code but not work
DataSet ds = new DataSet();
            //da.Fill(ds);
            //ds.Tables[0].TableName = "OrderBill";
            sArray.Clear();
            sArray.Add("@orderid," + this.orderid);
            dt = clsdb.GetProcData("usp_PrintOrder", sArray);
            if (clsdb.errMsg.ToString() != "")
            {
                clsdb.ErrorSave(Details.UserId, clsdb.errMsg, this.Name, "usp_PrintOrder - 0", "call SP");
                MessageBox.Show("Error in getting Data");
            }
            if (dt != null)
            {
                if (dt.Rows.Count > 0)
                {
                    ds.Tables.Add(dt);
                    ds.Tables[0].TableName = "OrderBill";
                    this.OrderBillBindingSource.DataSource = ds;
                }
            }

            //this.OrderBillBindingSource.DataSource = ds;
            this.reportViewer1.RefreshReport();
Posted
Updated 18-Sep-13 7:45am
v2
Comments
[no name] 18-Sep-13 13:14pm    
"write code to rint on dot matrix printer", no. The printer is a printer. The clue might be in this mysterious exception....
vishal_h 18-Sep-13 13:46pm    
thanks fro reply.i have posted code in question is there any thing u can help in this scenario.
Dave Kreskowiak 18-Sep-13 16:12pm    
What's the exception message?? From your applications perspective, there's no difference between printing on a dot matrix printer and printing on a laser or ink jet.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900