所以简单地说,我制作了一个简单的asp.net网站,当你点击按钮时,它会打印出页面。当你打印出来时,它会问我将使用哪种打印机和哪种选项。我的目的是直接打印出来的页面,而不要求我的打印机和options.Thank你的帮助。
我正在visual 2015上运行这个程序。
c# asp.net
function printpage() {
var getpanel = document.getElementById("<%= Panel1.ClientID%>");
var MainWindow = window.open('', '
我有一个hp桌面喷墨优势3777打印机。我一直试着用我的系统安装打印机,但失败了。所以请提供一些有价值的建议。
$ lsusb
Bus 001 Device 006: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 008: ID 03f0:0653 Hewlett-Packard
Bus 001 Device 012: ID 05c6:f00e Qualcomm, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device
我需要将文档发送到网络打印机(\myserver\myprinter)。我使用System.Printing类进行打印,当它来自Windows Service时,它工作得很好,但是从ASP.NET应用程序,它只能打印到本地打印机,而不能打印到网络打印机。我得到的错误是“打印机名称无效”,这是我用来获取打印机名称的代码:
public string PrinterName
{
using (LocalPrintServer server = new LocalPrintServer())
return server.GetPrintQueue(@"\\myserver\myp