Reputation: 67
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
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
Reputation: 460
This may useful for you, Printing a Local Report without Preview
How to directly print rdlc report without showing PrintDialog() in C#?
Thanks, Christo
Upvotes: 1