printers

Finding if printer is online and ready to print

坚强是说给别人听的谎言 提交于 2019-12-04 12:28:04
The following 4 questions didn't help, therefore this isn't a duplicate: ONE , TWO , THREE , FOUR I need to find a way to discover if the Printer that my system reports is available to print or not. Printer page: In the picture, the printer "THERMAL" is available to print, but "HPRT PPTII-A(USB)" isn't available to print. The System shows me that, by making the non-available printer shaded Using the following code, I'm able to find all the printers in the system public static List<String> getAvailablePrinters() { DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;

Node.js : How to add print job to printer

南楼画角 提交于 2019-12-04 11:54:14
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": "application/pdf" }, data: pdf }; printer.execute("Print-Job", msg, function(err, res){ console.log(res); }); });

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

假如想象 提交于 2019-12-04 09:57:52
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 local and network), it fails. Based on lot of research using google, I found quite a few suggestions to

Printing files in java with raster PTR printer

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 08:39:44
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 service = ServiceUI.printDialog(null, 200, 200, printService, defaultService, DocFlavor.INPUT_STREAM.GIF,

Printing on a Bluetooth printer

喜欢而已 提交于 2019-12-03 11:04:23
问题 I need to print on a Bluetooth printer. I already have a program for the Windows mobile platform, that sends commands and data via Bluetooth to a Zebra RW 420 printer, using the Zebra Printer Protocol. It's just a stream sent on Bluetooth. Now, we'd like to do this on Android. I would like to know some basic information: Is this type of printing possible/doable (we've seen very little information regarding printing on Android), or is Bluetooth limited to audio and file transfer? How to

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

廉价感情. 提交于 2019-12-03 09:05:34
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 onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);

How do I know if PDF pages are color or black-and-white?

耗尽温柔 提交于 2019-12-03 00:51:39
问题 Given a set of PDF files among which some pages are color and the remaining are black & white, is there any program to find out among the given pages which are color and which are black & white? This would be useful, for instance, in printing out a thesis, and only spending extra to print the color pages. Bonus points for someone who takes into account double sided printing, and sends an appropriate black and white page to the color printer if it is are followed by a color page on the

Printing on a Bluetooth printer

≡放荡痞女 提交于 2019-12-03 00:34:59
I need to print on a Bluetooth printer. I already have a program for the Windows mobile platform, that sends commands and data via Bluetooth to a Zebra RW 420 printer , using the Zebra Printer Protocol. It's just a stream sent on Bluetooth. Now, we'd like to do this on Android. I would like to know some basic information: Is this type of printing possible/doable (we've seen very little information regarding printing on Android), or is Bluetooth limited to audio and file transfer? How to connect a Bluetooth printer to the Android device. Kris Heath Your best bet will be to use the ZebraLink SDK

How do I know if PDF pages are color or black-and-white?

我是研究僧i 提交于 2019-12-02 14:16:46
Given a set of PDF files among which some pages are color and the remaining are black & white, is there any program to find out among the given pages which are color and which are black & white? This would be useful, for instance, in printing out a thesis, and only spending extra to print the color pages. Bonus points for someone who takes into account double sided printing, and sends an appropriate black and white page to the color printer if it is are followed by a color page on the opposite side. This is one of the most interesting questions I've seen! I agree with some of the other posts

WPF list available printers and trays

旧街凉风 提交于 2019-12-02 14:01:20
问题 I'm writing WPF application which needs to display list of available Printers and corresponding trays. I can able to get list of available printers by loop through the following line PrinterSettings.InstalledPrinters and now stuck up with getting corresponding printer trays. could anybody give sample code? 回答1: You are looking for PaperSources property - Gets the paper source trays that are available on the printer . (MSDN: http://msdn.microsoft.com/en-us/library/system.drawing.printing