Click here to Skip to main content
14,270,872 members
Rate this:
Please Sign up or sign in to vote.
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
NotPolitcallyCorrect 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100