Prashantkumar
Prashantkumar

Reputation: 67

How to print rdlc report without Report Viewer or any print dialog in C# .Net

can i print .rdlc report without using report viewer or any print preview dialog Box?

-I want to Print directly without Print Preview or Printer Dialog Box. -Please Guide me i am new in this type of work in C#. -please provide me code for this work if any one have.

Upvotes: 1

Views: 9718

Answers (2)

Vicky S
Vicky S

Reputation: 832

LocalReport report = new LocalReport();
            report.ReportEmbeddedResource = "Your.Reports.Path.rdlc";
            report.DataSources.Add(new ReportDataSource("DataSet1", getYourDatasource()));
            report.PrintToPrinter();

kindly refer the link How to directly print rdlc report without showing PrintDialog() in C#?

Upvotes: 1

Related Questions