Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a restaurant POS system. I want print the Invoice/Token (Item list of an order) to Multiple Printer at a time as like front desk and kitchen. My project in Asp.net Coe and the report in RDLC.

What I have tried:

using var report = new LocalReport();
            var dt = new DataTable();
            //using var report = new LocalReport();
            dt = GetItemList(orderId);
            var path = $"{ this._webHostEnvironment.WebRootPath}\\Reports\\rptToken.rdlc";
            report.ReportPath = path;
            report.DataSources.Add(new ReportDataSource("dsItem", dt));
            var pdf = report.Render("PDF");

            return File(pdf, "application/pdf");
Posted
Updated 1-Jan-23 2:02am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900