Page 1 of 1

Print Direct Asp Core

Posted: Tue Nov 14, 2023 8:25 am
by omidaminiazar
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.

Re: Print Direct Asp Core

Posted: Tue Nov 14, 2023 10:01 am
by Lech Kulikowski
Hello,

In that case, printing is calling on the server. On the client, in the web, it is not possible to print without a print dialog menu.
https://www.stimulsoft.com/en/documenta ... _print.htm

Thank you.