Print Direct Asp Core

Stimulsoft Reports.WEB discussion
Post Reply
omidaminiazar
Posts: 1
Joined: Wed Dec 07, 2022 9:38 am

Print Direct Asp Core

Post 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.
Attachments
prin.png
prin.png (4.12 KiB) Viewed 8928 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Print Direct Asp Core

Post 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.
Post Reply