Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send print string direct to print 1

Status
Not open for further replies.

Skarcrow

Programmer
Feb 2, 2005
13
GB
Hi All,

I've a loan Zebra Z4M Plus label printer to test (only got it for 1 week). Using the windows printer driver and using printdocument work fine but is slow and I would rather use the printers "in built" barcodes etc.. than sending bitmap images.

If I send the strings to print a barcode in a printdocument eg:

^BY2,2.0,100^FO0,0^B2N,100,Y,N,N^FD12345678^FS


Then all that gets printed is the string not the barcode

Any ideas how I can send these strings directly to the printer. (connected via parallel port)
 
I know I can do this from the command prompt but I want to send the strings direct to the printer from within a program in VB .net :-(
 
fair enough, perhaps you cant rely on the shell
i guess the shell redirect relies on the printer being captured to a port.
perhaps you could look at ports in .net then
 
The Zebra driver has a passthrough function.

Try embedding your code in ${...}$
The driver will pass the code directly to the printer without bitmapping it.

E.g. ${^BY2,2.0,100^FO0,0^B2N,100,Y,N,N^FD12345678^FS}$

Mark
 
I am printing on Label printer (Datamax E4203) using C#, if I print 1 label (3'' X 1'') then it prints like a charm. The problem occurs on printing more than one like from the list of ArrayList.

e.HasMorePages = true, prints right number of labels & formatting but it prints same data in all labels. And if I set page size to (item.Count * label.Height) then formatting is screwed up and not even the right number of labels come out. Print preview looks great but printing output is not. What am I doing wrong, please guide.

Thanks
Gurvin

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top