-
April 30th, 2009, 01:59 AM
#1
Printer Dll.
Hi. I'm unsure if this is the right topic, but since
GDI is mentioned i'll give it a go.
I need a very simple dll (COM/OCX) for printing reciepts at
a receipt printer.
The ideal functionality of the
function should be :
Print(string printername, string fontname, string PrinterOutput).
It's important that it's possible to use the native
fonts of the printer(Device Specific?), using TrueType
fonts will make the print slow.
I've looked around, but i've only found components that
by far exceed my simple needs.
Does anyone know a component that match my needs ?
-
April 30th, 2009, 06:41 AM
#2
Re: Printer Dll.
I have not seen such a DLL, but I have written programs for small printers. I used the standard fonts of the printers. I found the explanations I needed in the programming manuals that I could donwload for free from the web sites of the constructors. These printers have their own languages. I saw ZPL and EPL. You write lines of comands in a file, and then send the file to the printer via FTP or another way. Here is a commented example in EPL:
Code:
; Set label width in dots
q812
; Select print speed 50mm/s (medium speed) 1is low speed, 4 is high speed.
S2
; Enable direct thermal mode
OD
; Enable top of form backup
JF
; Disable Windows command mode
WN
; Printing from top of image buffer
ZT
; Set form length 1218 with a gap of 25
Q1218,25
; Clear image buffer
N
; Select font 8-bit, first resident font
I8,1
; Define the location, font, and string of characters to be printed
; Ax,y,rotation,fontsize(1-5),hmulti(1-6),vmulti(1-9),
; reverse(N=normal),"text"(in quotes)
A50,62,0,5,1,1,N,"Test Ascii text"
; Print
P1
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|