Print Direct to dotmatrix printer without print dialogue from VS 2010
Hai...
how to print a report direct to the dotmatrix printer without show the print dialogue from VS 2010? Please help me
Thanks
how to print a report direct to the dotmatrix printer without show the print dialogue from VS 2010? Please help me
Thanks
Comments
in C#
var rpr = new Report();
string reportPath= AppDomain.CurrentDomain.BaseDirectory + "\\report.frx";
rpr.Load(reportPath);
rpr.PrintSettings.Copies = 1;
rpr.PrintSettings.ShowDialog = false;
rpr.Print();