Solved

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

Posted on 2011-09-28
2
662 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
Comment Utility
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
Comment Utility
thank you~.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user 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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

7 Experts available now in Live!

Get 1:1 Help Now