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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EPOS System

Status
Not open for further replies.

webpager

Programmer
Joined
Mar 27, 2001
Messages
166
Location
GB
Does anyone have any experience of printing to a Star SP200 receipt printer from FP6.
I am updating an EPOS system I wrote a few years ago, to WIN98. The original was written in DOS and the printer worked OK. The Docs. from Star speak of a Control Font but I am unable to locate this font within the drivers obtained from Star.
 
Are there any OPOS drivers for this type of Star printer ?
If so, I suggest using OPOS to print your receipts.

HTH,
Weedz (Edward W.F. Veld)
My private project:Download the CrownBase source code !!
 
Hi

there are definately OPOS drivers for Star Printers, I've got an old copy which I have used. I con't remember what web site I got them from, try searching for Star Micronics. Alternatively let me have an email address and I'll send a copy of the ones I have.
 
Thanks both of you.
I have taken a different approach and things are looking up.
I tried creating a file RECEIPT.BAT using low level, FCREATE, FWRITE etc. Then ! COPY RECEIPT.BAT LPT1 and it works a treat. The format needs to be sorted out but the receipts always follow the same format so shouldn't be a problem. I am able to print the receipt I require without worrying about windows drivers at all. A bit of a dirty way to do it but at least it works.
Further work needs to be done but I feel I am on the right lines.
 
I use the same printer with a POS register that I designed myself. What I did was to create a dll in Visual C++ with several functions for different print options like alignment, font, boldface, etc. Since in C++ its very easy to direct text output to LPT1, I figured that I'd create the link libraries in C++ and reference them just like any other API under VFP 6.
 
Another thought - Is it possible to FOPEN > LPT1 then FWRITE to LPT1?
 
Fox doesn't do low level i/o very good on ports. You could maybe use COPY FILE whatever TO LPT1 though.
Dave S.
 
Thanks for that_
I've tried COPY FILE but would like to find the most economical (TIME WISE) way of carrying out the procedure. Thought there night be a way of speeding it up as least code is quicker code.
Ongoing discussion would be good, thanks


Amnyone else have any comments?

Keith (Webpager)
Knows a lot but would like to seak to people with more knowledge
 
I don't know how you could shrink

FOPEN(Somefile)
FWRITE(somefile, ...)
.
.
.
FCLOSE(somefile)
COPY FILE somefile TO LPT1

Since you're doing that anyway.
However, did you already try the

SET PRINT TO lpt1
SET PRINT ON
SET DEVICE TO PRINTER
?CHR(...control code...)
?'Stuff...'
.
.
.
?'More Stuff...'
SET PRINTER OFF
SET PRINTER TO
SET PRINTER TO

routine?
Dave S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top