[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: ZEBRA printers and Barcodes



We use Zebra printers to print Labels etc...and here is a sample of the code
we use...we can't just use Print commands to print to it...I used the Zebra
printer manual to find these codes.  I write these codes to a file and then
print the file.


****************************************************************************
!
!Generate Labels:Prints labels.It only prints Address lines if they are not
!
!                              blank.
!
!***************************************************************************
*!
begin-procedure Generate-Labels

write 1 from '^XA'
write 1 from '^FO10,20^AEN,25,13^FD' $vndr_name   '^FS'
write 1 from '^FO10,50^AEN,25,13^FD' $Address1    '^FS'
if $Address2 <>''
   write 1 from '^FO10,75^AEN,25,13^FD' $Address2    '^FS'
   if $Address3 <>''
      write 1 from '^FO10,100^AEN,25,13^FD' $Address3    '^FS'
      if $Address4 <>''
         write 1 from '^FO10,125^AEN,25,13^FD' $Address4    '^FS'
         write 1 from '^FO10,150^AEN,25,13^FD' $AddressLast '^FS'
         if $Country <> 'United States'
             write 1 from '^FO10,175^AEN,25,13^FD' $Country    '^FS'
         end-if
      else
         write 1 from '^FO10,125^AEN,25,13^FD' $AddressLast '^FS'
         if $Country <> 'United States'
            write 1 from '^FO10,150^AEN,25,13^FD' $Country    '^FS'
         end-if
      end-if
   else
      write 1 from '^FO10,100^AEN,25,13^FD' $AddressLast '^FS'
      if $Country <> 'United States'
         write 1 from '^FO10,125^AEN,25,13^FD' $Country    '^FS'
      end-if
   end-if
else
   write 1 from '^FO10,75^AEN,25,13^FD' $AddressLast '^FS'
   if $Country <> 'United States'
      write 1 from '^FO10,100^AEN,25,13^FD' $Country    '^FS'
   end-if
end-if
write 1 from '^XZ'

end-procedure Generate-Labels

> -----Original Message-----
> From: Anne Mongauzy [SMTP:amongauzy@GVJONES.COM.AU]
> Sent: Monday, July 31, 2000 9:09 PM
> To:   SQR-USERS@list.iex.net
> Subject:      ZEBRA printers and Barcodes
>
> Hi all
>
>    I am trying to print a barcode to a Zebra printer and have been
> unsuccesful up to now. I can print to this printer in other environments
> but
> not with my SQR. I have declared the printer directly in the SQR but still
> no luck. Any suggestions?
>
>
>    declare printer        ! Declare printer characteristics
>
>    type=LINEPRINTER       ! Types: POSTSCRIPT, HPLASERJET, or LINEPRINTER
>    orientation=landscape   ! portrait or landscape
>
> Cheers
> Anne