Print to network printer

Stimulsoft Reports.WEB discussion
Post Reply
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

Print to network printer

Post by FrenkR »

Hello,
is there any simple example of printing to "shared" (network) printer? I believe I need to set network name and authorization credentials?
Lech Kulikowski
Posts: 6431
Joined: Tue Mar 20, 2018 5:34 am

Re: Print to network printer

Post by Lech Kulikowski »

Hello,

As a way, please try to check the following solution:
https://support.vendhq.com/hc/en-us/art ... view-on-PC

Thank you.
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

Re: Print to network printer

Post by FrenkR »

Hello,
I mean printing to a "shared printer" with printer name "\\{server_name}\{shared_printer_name}" using code.

Currently, for printing to local printer it is as follows:

Code: Select all

PrinterSettings printerSettings = new PrinterSettings
            {
                PrinterName = {local_printer_name_from_PrinterSettings_InstalledPrinters_List}
            };
Report.Print(false, printerSettings);
Question is about code "snippet" to print to "shared printer". I believe there are also issues with authorization/authentication?
Lech Kulikowski
Posts: 6431
Joined: Tue Mar 20, 2018 5:34 am

Re: Print to network printer

Post by Lech Kulikowski »

Hello,

It the browser limitations, due to the security reason, it is not possible to provide printer settings from the code.

Thank you.
Post Reply