Hello,
I know this is a topic that comes up fairly often but I haven't managed
to get anywhere :(
I have an Epson printer that uses Epson ESC/P2 language. I want to write a
report in ESC/P2 language and send it directly to the printer. I have
written reports in native printer language before but the printers were
always connected locally to a parallel port. After forming the data for the
printer I'd use Foxpro RUN command to copy the data file to the relevant
parallel port.
Now I want to do this to a shared Windows printer. I have set up the printer
on my computer with the "Generic/Text only" driver and now commands such as
"LIST TO PRINTER" come out at draft speed. I always understood the way to
get Foxpro to write directly to the printer was by using the ??? command.
Unfortunately all this does is create a nasty white error box saying "Cannot
write to device PRN ." then causes a GPF.
I am using FPW2.6a, is there a decent way to do what I want? Is it any
easier in later versions of Foxpro? From my experience it does seem as if
there is a massive oversight in the Windows world by assuming that people
will never want to write raw data to a networked printer. Maybe I'm missing
something?
--
Thanks in advance
Andrew Howell