printers

Windows programmable virtual printer “device”

馋奶兔 提交于 2019-12-11 14:24:11
问题 I have no idea how this windows service called or how should I tag it. But I have seen around some software driven printing devices/configurations at windows, like Send to OneNote or Convert to PDF (from different pdf applications) . So I want to create one like this myself, lets say a virtual printer device that converts documents into PDF file. How it called? Where I can find some information about it ? Thank you. 回答1: A lot of these applications (on Windows) actually use the built-in

List available network printers (non-installed as well) [duplicate]

。_饼干妹妹 提交于 2019-12-11 02:47:25
问题 This question already has answers here : Is there a .NET way to enumerate all available network printers? (6 answers) Closed 4 years ago . Meaning i am able to enum all printers (network and local) but ONLY if they are installed on my PC However i want to be able to list those that are not installed and can be seen by using (windows built-in) ADD PRINTER dialog. Is it even possible as i couldn't find anything useful browsing various forums/boards including stackexchange. Meaning i tried the

Get Printer Status Using SNMP OID

浪子不回头ぞ 提交于 2019-12-10 00:30:33
问题 I am working with SNMP in Android. I want to get Printer Status. I am using Snmp4Android.jar and OID 1.3.6.1.2.1.25.3.5.1.1 . Please refer this link Printer Status. SnmpActivity.java here public class SnmpActivity extends Activity { private static String ipAddress = "PrinterIP"; private static String port = "Port"; private static String oidValue = "1.3.6.1.2.1.25.3.5.1.1"; public static Snmp snmp; public static CommunityTarget comtarget; static PDU pdu; static OID oid; static VariableBinding

Node.js : How to add print job to printer

血红的双手。 提交于 2019-12-09 19:14:12
问题 I am developing a web application using node.js where i have a scenario to print some pdf files located in my local. Ex: var ipp = require('ipp'); var PDFDocument = require('pdfkit'); //make a PDF document var doc = new PDFDocument({margin:0}); doc.text(".", 0, 780); doc.output(function(pdf){ var printer = ipp.Printer("http://NPI977E4E.local.:631/ipp/printer"); var msg = { "operation-attributes-tag": { "requesting-user-name": "William", "job-name": "My Test Job", "document-format":

Delphi Win32 Service “Printer Selected is not valid” error on 2008 64bit standard server

心已入冬 提交于 2019-12-06 04:40:16
问题 I have developed a simple win 32 service in delphi 7 which performs some print operations. All works fine on our XP machines, but fails on the target Windows 2008 standard server . When I put a try except block around the print statement, it results in the "Printer Selected is not valid" error. When I check the Printer object for count of printers and event write out all the printers available in the Printer object to a file, it works fine. Only when I try to perform a print (on any printer

Printing files in java with raster PTR printer

旧巷老猫 提交于 2019-12-06 02:15:47
问题 I have two peices of code for printing using java as seen below: The First Code for(int i = 0; i < files.length; i++) { String file = "C:\\images\\colour\\"+files[i].getName(); String filename = file; PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet(); DocFlavor flavor = DocFlavor.INPUT_STREAM.GIF; PrintService printService[] = PrintServiceLookup.lookupPrintServices(flavor, pras); PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService(); PrintService

Send printer commands via socket in Java

心已入冬 提交于 2019-12-05 06:45:02
问题 i'm trying to send commands to a card printer via socket, but i am unable to make it work. Right now, i have a program developed in php, that is working, but i need to make it work in Java. The program in PHP is something like this: $ESC = chr(27); //Ascii character for Escape $CR = chr(13); // Ascii character for Carriage Return $cmd = $ESC . $command . $CR; socket_send($socket, $cmd, strlen($cmd), 0); socket_recv($socket, $respuesta, strlen($respuesta), 0); In Java, i am making something

Get Printer Status Using SNMP OID

£可爱£侵袭症+ 提交于 2019-12-04 21:01:42
I am working with SNMP in Android. I want to get Printer Status. I am using Snmp4Android.jar and OID 1.3.6.1.2.1.25.3.5.1.1 . Please refer this link Printer Status . SnmpActivity.java here public class SnmpActivity extends Activity { private static String ipAddress = "PrinterIP"; private static String port = "Port"; private static String oidValue = "1.3.6.1.2.1.25.3.5.1.1"; public static Snmp snmp; public static CommunityTarget comtarget; static PDU pdu; static OID oid; static VariableBinding req; Button b; private static final String tag = "SNMP CLIENT"; @Override public void onCreate(Bundle

How I can get printer name from device and printers IShellFolder?

血红的双手。 提交于 2019-12-04 18:46:12
I'm getting system printers icons using code (only way I found - is to use IShellFolder ), now I want to connect them with InstalledPrinters, but problem is - I can`t find way to find real printer name (such as "\ServerName\PrinterName" ), with is different to display name of content of "Devices and printers" shell folder and only correct to use with PrinterSettings. The code I have use to retrive printer icons and printer captions in "Devices and printers" shell folder: Shell32.IShellFolder iDesktopFolder = Shell32.GetDesktopFolder(); try { IntPtr pidlPrintersFolder; if (Shell32

How to print image with text from android phone to Bluetooth printer.?

五迷三道 提交于 2019-12-04 14:17:07
问题 I want to print some text with image which is reside on my android phone to Bluetooth printer but text is successfully printed and image is not printed on paper. I using following code: public class SendingdataActivity extends Activity { /** Called when the activity is first created. */ private BluetoothAdapter mBluetoothAdapter = null; static final UUID MY_UUID = UUID.fromString("fa87c0d0-afac-11de-8a39-0800200c9a66"); static String address = "50:C3:00:00:00:00"; @Override public void