javascript - JSprint Set Printer 共享打印机

标签 javascript firefox printing firefox-addon

如果是共享打印机,如何在jsprint中设置打印机名称?因为如果我只是将其命名为打印机名称,则会收到一条错误消息,指出它无法看到打印机。

谢谢大家。

最佳答案

此内容来自 Dimitar Angelov,他是 Firefox 中这个精彩附加组件的创建者之一,它可以让您自动直接打印,而无需显示对话框。

"If you are using network printer, common mistake is wrong using of slashes. For example if UNC name of your printer is \myserver\myprinter As javascript literal you must double slashes, because they are escape characters also. The correct using of this UNC name will be: var myprinter = '\\myserver\myprinter'; alert(myprinter); // to see if name is correct" <

如有其他问题,您可以通过他的电子邮件地址与他联系:

mitko@edabg.com

干杯!

关于javascript - JSprint Set Printer 共享打印机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19919636/

相关文章:

javascript - 如何在使用 slideToggle() 显示/隐藏后更改 div 样式

javascript - 错误错误 : Angular JIT compilation failed: '@angular/compiler' not loaded

android - 创建与桌面和 Android 兼容的单个 Firefox 扩展

css - 如何在 FireFox 中为 SVG 使用十六进制值

javascript - 打印doc文件的JS函数?

javascript - 通过Ajax更新数据

javascript - MongoDB:更新嵌套数据,但避免多个对象

css - Firefox 透明边框上出现不需要的轮廓

C++ 为错误使用自定义打印/日志功能添加编译器警告

Delphi debug.print 函数?