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

Comments

  • edited September 2011
    Indra wrote: »
    Hai...

    how to print a report direct to the dotmatrix printer without show the print dialogue from VS 2010? Please help me

    Thanks

    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();

Leave a Comment