We have an application running within Electron which is successfully sending a byte array to the Windows print buffer and printing on all of our printers, except for one: "HP LaserJet Pro M402n". We found an option to print a history and the HP printer is tallying the phantom jobs as printed, but nothing actually was. We're at a bit of a loss on how to debug this, as it seems like an internal printer issue. Does anyone have advice on how to debug something like this? I'm thinking like Fiddler, virtual printer w/ debugger, etc. Any advice is appreciated.
Thanks
Related
I want to programatically call the special functions in the Maintenance tab of my Canon Pixma's Printer Properties (in Windows):
I'm specifically after any .Net or Win32 methods that I should be looking to use, but I'm happy to hear alternative methods that might work.
Thanks.
I noticed the clean was sent to the printer via print spooler as a 'maintenance' job. Thanks to this SO answer here I was able to capture the data sent to the printer.
I then sent raw commands to the printer as per the instructions on this MS page.
(Unfortunately, I discovered this after doing hack with printui.dll,PrintUIEntry and various FindWindow() and SendMessage() calls to simulate the UI. * sigh *)
Good morning,
I am developing a kiosk application. In that application i need to send some commands to a printer with ESC/POS protocol.
I have some commands that give me information about printer (printer status, end of paper status). For sending command I use this function, but I need also to read the printer reply.
How can I do it? (The printer is connected in USB mode).
I'm developing on delphi xe2
Thanks
The example is assuming that your string type is simple such as shortstring. Try declaring s as shortstring. It can not work with widestring or unicode.
Did you check if the USB connection makes a new serial port?
If a new serial port displayed in device manager, I can help you to send the ESC command with a Delphi Comport component.
But if there is no serial port shown up, I have no idea about how to control the thermal printer.
I'm doing a project to build printer using a microcontroller via USB. The MCU's USB is configured as printer class when I plug the MCU into the PC so that it is identified as a printer. I've installed generic/text only driver available with windows and hence i can see my printer in "devices and printers" listed under printer category.
My question here is if I want to print whatever is sent to the printer, I need to know the data being sent from PC. For example, if I print a pdf, I want to know what data is sent i mean the format like HEX values or anything like that. Once I know what is coming into the controller I can print.
Any input here is welcome.
Thanks in advance
Well, since your printer setting is a simple generic/text only, the data sent will be the text content of the PDF. No markup, not even bold text or italics. Any pictures in the PDF will not be sent at all.
If you wan more than that, you can write a driver for your printer. As the driver writer, you determine what's sent to the printer.
i am attempting to print labels from our custom CMS for products using EPL2 label printer drivers but having no luck.
the printer spits out about 12 labels (4x1") but no text is visible.
i set up the printer manually and using the CUPS admin interface and get the same results each time.
zebra doesn't make a native driver, but i am finding on the web that this driver should work.
any advice would be much appreciated.
thanks.
What kind of data are you sending to the device? If you're just doing a File->Print of the web page it should work with the OS drivers, no need to go into the CUPS interface. If you're writing to the spool folder you should be sending raw EPL code - look for the EPL Programming Guide # Zebra.com
Make sure you setup the device correctly as well.
http://www.nrgsoft.com/blog/?p=11
what ended up working was doing a factory reset and using #page along with paper size settings to print in the correct dimensions.
the only printer i could get to actually work the way it was supposed to was Chrome.
When a Blackberry phone is connected via USB and in debug mode, calls made to System.out.println() are visible in the log.
But is there any way to get access to "stdout" even from a program not in debug mode? Attaching with some command line program perhaps?
I worked around the issue by creating an over-the-network logging function.
If you have the JDE installed and BB plugged in via a USB:
JavaLoader.exe -usb eventLog > theLog.txt
This is often much more convenient for accessing the logs during dev.
There's no way to programmatically get the content though.