Zebra Printing插件简介
🌹 这个应用程序可以在 ChromeFK 或 Google Chrome 网上应用商店进行下载。 ChromeFK上的所有插件扩展文件都是原始文件,并且 100% 安全,下载速度快。
Zebra Printing插件描述
Most Zebra Printers have a HTTP POST endpoint through which ZPL can be directly printed without the need f an installed driver, print dialogs popping up other locally installed software. Unftunately those printers dont set any CORS headers which makes it impossible to use this HTTP endpoint in modern browserbased apps. This extension circumvents this issue. In your web app you can now directly print to Zebra printers by using window.postMessage(): window.postMessage({ type: "zebra_print_label", zpl: "^XA^PW400^LL200^FO20,20^A0N,30,30^FDThis is a TEST^FS^XZ", url: "http://192.168.37.36/pstprnt" }, "*"); The Zebra Printing extension will listen to those messages print the zpl to the url. type: The extension will only pick up messages where the type is zebra_print_label zpl: The ZPL string to be printed url: The URL of the printer The extension will also post a message to the web page upon loading. This way in your web app you can check if the extension is installed: window.addEventListener("message", function (event) { if (!event.data.ZebraPrintingVersion) { return; } // extension installed, enable print button whatever... console.log(event.data); }); The event will contain two fields: ZebraPrintingExtensionId: The extension ID (ndikjdigobmbieacjcgomahigeiobhbo) ZebraPrintingVersion: The version number of the installed extension
Zebra Printing插件离线安装方法
1.首先用户点击谷歌浏览器右上角的自定义及控制按钮,在下拉框中选择设置。
2.在打开的谷歌浏览器的扩展管理器最左侧选择扩展程序或直接输入:chrome://extensions/
3.找到自己已经下载好的Chrome离线安装文件xxx.crx,然后将其从资源管理器中拖动到Chrome的扩展管理界面中,这时候用户会发现在扩展管理器的中央部分中会多出一个”拖动以安装“的插件按钮。
4.下载 Zebra PrintingChrome插件v1.2版本到本地。
5.勾选开发者模式,点击加载已解压的扩展程序,将文件夹选择即可安装插件。
注意:最新版本的chrome浏览器直接拖放安装时会出现“程序包无效CRX-HEADER-INVALID”的报错信息,参照这篇文章即可解决
©软件著作权归作者所有;本站所有软件均来源于网络,仅供学习使用,请支持正版!
转载请注明出处:chromefk非官方中文站 » Zebra Printing