Print Direct Asp Core
Posted: Tue Nov 14, 2023 8:25 am
Hello Dears
I wrote this code to be printed directly on the Thermal POS printers and when I put it on a personal computer or on IIS it prints directly and there is no problem, but when I put it on the server (host) it does not work and it just loads and does nothing.
ASP Core 6
var reportPath = StiNetCoreHelper.MapPath(this, "wwwroot/Report/InvoiceSaleCasher.mrt");
var report = new StiReport();
report.Load(reportPath);
report.Print(false);
Best Regards.
I wrote this code to be printed directly on the Thermal POS printers and when I put it on a personal computer or on IIS it prints directly and there is no problem, but when I put it on the server (host) it does not work and it just loads and does nothing.
ASP Core 6
var reportPath = StiNetCoreHelper.MapPath(this, "wwwroot/Report/InvoiceSaleCasher.mrt");
var report = new StiReport();
report.Load(reportPath);
report.Print(false);
Best Regards.