Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-09-28
2
Medium Priority
?
683 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:
Jose Parrot earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
I originally wrote this article to compare SARDU and YUMI, but have now added Easy2Boot, since that is the one I currently use and find the easiest to create and alter.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

971 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