network-printers

Print directly to network printer using php

孤街浪徒 提交于 2019-11-27 20:56:11
I am unable to print a page to a network printrer using php. But this works if it is a local printer. I have installed php_printer.dll and enabled in php.ini The following is the code: //$handle = printer_open("Send To OneNote 2007"); ///This Works $handle = printer_open('\\\\192.168.0.8\\Canon MF4320-4350'); printer_set_option($handle, PRINTER_MODE, "RAW"); printer_write($handle, "TEXT To print"); printer_close($handle); It shows the error Warning: printer_write() [function.printer-write]: couldn't allocate the printerjob [5] in E:\Server\xampp\htdocs\Kiosk\Admin\print.php on line 16 If you

PHP to Zebra Printer

淺唱寂寞╮ 提交于 2019-11-27 12:46:08
问题 I have this Zebra ZM400 Printer connected to the network ( 192.168.1.50 ). And I am trying to push a content to this printer directly from PHP. This is the idea and I am just stuck without any way to do this. I tried the file_put_contents('192.168.1.50', $content) but with no success. Would appreciate if anyone could please help me in sorting out this. Thank you :-) ................................................................................................................................

printing over network from PHP app

 ̄綄美尐妖づ 提交于 2019-11-27 01:46:28
问题 I have a set of printers connect over a network with Static IP assigned to each printer. Now i have a PHP web application running on a linux server which needs to send print jobs, to these printer over the network. Is this possible using lpr or cups and how do i go about it. 回答1: You could use the LPR Printer class from here: http://www.phpclasses.org/package/2540-PHP-Abstraction-for-printing-documents.html Example: <?php include("PrintSend.php"); include("PrintSendLPR.php"); $lpr = new

Send text file directly to network printer

戏子无情 提交于 2019-11-26 20:46:11
问题 I have currently-working code which sends raw data to a printer by writing a temporary file, then using File.Copy() to send it to the printer. File.Copy() supports both local ports, like LPT1 and shared printers like \\FRONTCOUNTER\LabelPrinter . However, now I'm trying to get it working with a printer that's directly on the network: 192.168.2.100 , and I can't figure out the format to use. File.Copy(filename, @"LPT1", true); // Works, on the FRONTCOUNTER computer File.Copy(filename, @"\

Print directly to network printer using php

我是研究僧i 提交于 2019-11-26 20:29:50
问题 I am unable to print a page to a network printrer using php. But this works if it is a local printer. I have installed php_printer.dll and enabled in php.ini The following is the code: //$handle = printer_open("Send To OneNote 2007"); ///This Works $handle = printer_open('\\\\192.168.0.8\\Canon MF4320-4350'); printer_set_option($handle, PRINTER_MODE, "RAW"); printer_write($handle, "TEXT To print"); printer_close($handle); It shows the error Warning: printer_write() [function.printer-write]:

Printing using IPP without drivers (IPP Client)

 ̄綄美尐妖づ 提交于 2019-11-26 19:39:04
问题 I have a device/appliance that you cannot install drivers for. I would like to add the ability to support network/IPP/AirPrint printers by having the user add the IP Addresses. Since I am not printing through windows (which would use the IPP), how do I use IPP myself? Is there a c# client (or any windows library) out there that allows you to interact with IPP printers with the IPP protocol? 回答1: There are a few IPP-Client implementations and IPP Libraries available for different programming

Is there a .NET way to enumerate all available network printers?

為{幸葍}努か 提交于 2019-11-26 12:19:00
问题 Is there a straightforward way to enumerate all visible network printers in .NET? Currently, I\'m showing the PrintDialog to allow the user to select a printer. The problem with that is, local printers are displayed as well (along with XPS Document Writer and the like). If I can enumerate network printers myself, I can show a custom dialog with just those printers. Thanks!! 回答1: found this code here private void btnGetPrinters_Click(object sender, EventArgs e) { // Use the ObjectQuery to get