3
I have an application made in C# MVC with a routine to print a plain text on the standard printer. The method was used RawPrinterHelper.SendStringToPrinter
that is described in this article.
Printing usually occurs when I run the application locally, but when I publish to the server, it lists the printer installed on the server and not the client.
How do I get the application to get the printer from the client and not from the server? If not possible, as I open then the printer dialog box by the application . NET C# MVC 4?
public bool ImprimeConteudoDiretamenteNaImpressoraPadrao(string conteudo)
{
string nomeImpressoraPadrao = (new PrinterSettings()).PrinterName;
return RawPrinterHelper.SendStringToPrinter(nomeImpressoraPadrao, conteudo);
}
Take a look at this reply from soEN http://stackoverflow.com/questions/1501910/retrieving-clients-printer-collection-in-asp-net
– Arthur Menezes
Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?
– Maniero