Zebra printer is connected to CUPS server and I am sending prints using IPP. When I parse zpl file and fill data using a parser it prints correctly, but when I directly try to print zpl with data using IPP it just prints it as plaintext.
Yeah, I was able to solve the issue. The problem was that the printer was not set to accept the raw zpl and print it. I had to set the printer to raw and it worked. Thanks.
If anyone still facing this issue here are the steps we followed to setup the ZPL printer.
Start the cups server and access the web interface via http://localhost:631/
Add printer
Choose your local printer (your printer should be listed)
press continue
Provide name, description and enable the share checkbox
continue
Choose the Make as 'RAW' please refer to the attached snapshot.
Add the printer.
It should print the label instead of raw ZPL.
Make sure you are using a generic text based print driver to print the ZPL.
Related
I have an EPSON fiscal printer (FP 81 II)
I installed its drivers and now I'm able to print test document to the printer and it's ok.
The installed printer is the following
I'm trying to execute the simple code of the library
Printer printer = new Printer("Printer Name");
printer.TestPrinter();
printer.FullPaperCut();
printer.PrintDocument();
in Printer Name i tryed everithing:
TM-T800F
TM-T800F TM-T900F
EPSON USB Controller for TM/BA/EU Printers
But nothing works, I have always the same Exception:
Unable to access printer : ...
From a previous experience I am thinking you may have a whitespace issue in the name. So copy and paste the name of the printer into your script.
Navigate to the "Printer properties" dialog
In the General tab copy the entire name. (note there may be whitespace characters at the end of the printer name so be sure to capture those characters)
Paste the name into your test script.
Test
Good luck.
In Windows how can I use RedMon EE , Ghostscript, GSview , Nenscript for Windows to convert a text file to postcript and redirect it to a printer .
Something like to configure "RPT1: Redirected Port"
with the values
C:\Program Files\Ghostgum\gsview\gsprint.exe
for the "Redirect this port to the program" and
-printer "Windows Printer Name" -copies 1 - for "Arguments"
and additionally use enscript in order to receive a text file as input .
You don't need most of those.
Apprently nenscript can convert text files to PostScript, so use nenscript to do that. Then use Ghostscript and specifically the mswinpr2 device to render to a Windows printer.
Of course, if the printer understand PostScript you don't even need to use Ghostscript, you can simply send the PostScript program direct to the printer.
You're also pointing to a very old version of Ghostscript there, 8.64, you really want to be using the current version 9.27 which is available from www.ghostscript.com. Version 8.64 is 10 years old now.
Edit
If it's a GDI printer then you need to get Windows to package the data and send it to the printer, using the Windows printer driver. To do that you need to have Ghostscript render the input to an image, then send the bitmap to the Windows printing pipeline using the mswinpr2 device.
So use nenscript to create the PostScript file (let's call it input.ps) then something like
gswin64c -sDEVICE=mswinpr2 -sOutputFile=%printer%My_Printer input.ps
The documentation for the Windows printing device can be found here.
I am using firefox jsPrintSetup extension to print a iframe silently. It works well when the printer is directly connected to the PC. When I tried to print it on a shared printer am getting an error 'Selected printer is not available'.
How can I specify an shared printer in jsPrintSetup?
Finally this worked!
Made the shared printer as default printer in the system
Get the list of printers connected to the system using js
Pass the first value of the response array to the jsPrintSetup printer function
I want to export the ZPL file (the one which starts with ^XA) of a given label on Zebradesigner but I can't manage to find any option to do so.
I already looked for a similar question on stackoverflow and I saw a post that seemed to resolve the problem:
get ZPL Code From zebra designer?
But I think I don't have the same version cause I don't have a "ports" tab on my printer properties.
So does anyone know how to achieve this with my Zebra version? I have Zebradesigner 2.2.3
Thank you!
There should be a "Print To File" checkbox or option in the print dialog. This should allow you to save to a .prm file which will contain the raw ZPL including ^XA.
There is a print to file checkbox when you print AND you must have a zebra printer driver that would have expected ZPL in order to get this to work right. Then the prn file that is saved will have ZPL that can be sent to a printer. There may be some additional configuration before the first ^XA in the file.
We are trying to build a Crystal Report that sends control characters directly to the printer, without going through the (buggy) Windows driver for that printer. Does anyone know a way to do this from within a Crystal Report?
The specific control character we are trying to send is CHR(2). However when we put that in a Crystal Report, and print to a Generic Text Only printer, it is converting the character to a period on output. The character appears as a box in Crystal's preview, so I suspect it is the Windows driver, rather than Crystal, that is the problem.
The device is a Datamax printer. We do have drivers for it, but are encountering various problems - the infrastructure group knows more about the problems than I do, I don't feel I have enough information to try and ask about the specific problem. It is some combination of the interplay of Crystal Reports, Citrix, our market-specific ERP package, and automatically selecting label printers for the appropriate label size based on user at the time the report is run.
Short answer is you can't. In the end it's a due to the fact that apps like Crystal only speak at the GDI level and hand this data to the printer driver to be converted to PCL/PS etc. and passed onto the printer.
What type of device is this? What are you trying to accomplish?
If there is a driver that works but isn't the specific one for the device you can use that. Another option, which is a little 'hacky', is to use the Mini Driver Development kit and build your own. We've done this for customers where we insert our own codes for things like a custom size of paper in where letter size is specified to work around apps that don't support a custom size of paper or have some special font we need to access. Also, there are some printers that allow you to change the escape character to something else, depending on your device that might work OR build a post process whereby you print to file, the file is picked up, you modify the print file by looking for some special syntax you entered and pass the file on...painful, but could do the trick.
Generally you cannot send escape characters directly to printer from Crystal Reports.
If you only need special character at the start or end of report (like paper cut or drawer open for POS printers), then you may use Generic Printer driver device options and describe Start or End Job sequence.
I personally have always found some working (or compatible) driver for any printer (what is your printer model, BTW?). For POS printers drivers often include specific "font", allowing send escape sequencies directly.