Solved

Can I Use a winspool.pas for window driver(zebra labeller Printer) and ZPL Command ?

Posted on 2011-09-28
2
664 Views
Last Modified: 2013-12-01
I want use a window driver for zebra printer.
and add a ZPL Command code.

procedure ff.drawText;
begin
   Printer.beginDoc;
   printer.canvas.textout(0,10,'this is test code');
   --> Add ZPL command (^XA...^XZ)
   printer.Enddoc
end;
 

help me ~.
0
Comment
Question by:wanna96
2 Comments
 
LVL 18

Accepted Solution

by:
JoseParrot earned 500 total points
ID: 37008800
Hello,

First please note that ZPL full set of commands aren't supported by all Z printers. You may want check which commands do you need and the available in the target printer. Basically, the trivial commands are available.

If you have already the drivers installed in your computer, just send the strings, including the ZPL commands (in the format control-letter, as in ^BS) as you want.

So, if your Windows version supports Delphi, the answer is yes, you can use winspool.pas.
You may have problems with the Windows SDK, so let me suggest take a look at
 http://mc-computing.com/languages/Delphi/DeviceCapabilities.html
where there are some hints on how to use winspool.pas in environments with both the Windows SDK distributted with Delphy and the one distributted by Microsoft.

Jose
0
 

Author Closing Comment

by:wanna96
ID: 37017093
thank you~.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Loop 6 49
This code tracks birthdays 3 60
Is there a simple front-end menu system. 9 70
Beginner to Unreal Engine 4 5 60
A short article about a problem I had getting the GPS LocationListener working.
I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now