Solved

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

Posted on 2011-09-28
2
671 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
Jose Parrot 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

734 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