My printer is : TSC DA310 barcode printer…
iam using below code to fetch value from field “full_name” and doctype is “test” and print it using my printer.
^XA
^FO100,100^GB200,200,200^FS
^FO150,150^A0N,50,50^FN1^FS
^FDYour Full Name^FS
^FO150,200^A0N,50,50^FD^1^FS
^DG1^FS
^XZ
How to fetch fields dynamically???
iam using QZ Tray…
iam unable to do it. please help me…
Hi @Kiranmai ,
you can use jinja format. for Example: if you want to fetch the full name of a document.
{{doc.full_name}}
Thank you @Safvan_Ph
Iam unable to printing it…my printer is not connecting to my system…
Do i need to install any drivers???
@Safvan_Ph i did by using that documentation only…
Did you setup this?
if you didn’t setup this. please select the raw printing format in that document print and click Raw Printing Settings and click allow . Then manually map you printer name
yes iam getting that but iam unable to get what i code for…
Iam getting like this on sticker.
Can you click PDF button from Preview. then you will get a code in the PDF you should copy and paste that code to ZPL. you can verify if there is any errors.
Paste in the Left side. after click redraw you can get the preview on right
1 Like
@Safvan_Ph Iam Using that ZPL viewer…in that iam getting what i need. But on sticker iam unable to getting that one.
and in PDF also iam getting it.
Copy and paste in to the ZPL and adjust the alignment. then add that code into your print format
Can you check this print. its showing something in the top right part. may be the issue is with the alignment
Okay @Safvan_Ph Thanks for your time
pmjd
February 12, 2024, 3:30pm
13
@Kiranmai try this post, it may be of help. Although it’s for a Zebra printer you are using the ZPL Zebra language on your TSC printer, so it should still be applicable.
Just thought I’d share this incase it helps anyone else.
This code will allow you to print directly to a networked Zebra label printer from any device connected to your network, without adding any additional software or drivers.
NB this is one way printer communication, so no printer issues will be reported back to the end user.
For my ERPNext setup, it is a local install, I don’t think this would apply to any cloud based installations for various reasons.
For this example I’ll use the Batch…
Okay @pmjd . Thanks for your time