Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
676 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 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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

688 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