Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to dot-matrix printer
Message
From
02/11/2009 15:46:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/11/2009 14:39:53
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01432759
Message ID:
01432779
Views:
90
>I have been using a small dos clipper code to print invoices from the vfp for last ten years. Is there a way to print straight from vfp using
>@ PROW( )+1,10 SAY or ?? field name and be able to setup the page length, font size and font type ??? The printer we are uisng is OKI Microline 590. Any help will be appreciated.

I created download #9991, precisely to help in printing to dot-matrix printers, in text mode. If your printer doesn't use the Epson commands, you may have to adjust the printer codes (read the printer manual).

You can also prepare the entire text file, then send it to the printer. If you create the file report.txt, the command is basically like this:
??? lcPrinterCodes + FileToStr("report.txt")
However, the download I mentioned gives you lots of additional options, for example, print headers and footers at different levels (i.e., when different break expressions change).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform