Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing On Dot Matrix Printer From VFP
Message
From
16/07/2001 07:15:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
16/07/2001 00:45:11
Devrishi Bhogra
Escorts Claas Limited
Faridabad, India
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00529557
Message ID:
00530912
Views:
28
Sorry - I don't know how to solve the eject problem. I had no problems with eject on an Epson dot-matrix printer - except when I myself forgot to put the eject, or put an eject too much. The command for eject (for Epson printers) is chr(12). Check your text-file for this character.

A few more hints:

Many programmers generate the text file with "@...SAY"; personally, I did that a while ago myself, but then switched to "?" and "??", which I find easier to use. My class (see below) has wrapper functions for these; the wrapper functions increment column count and line count.

You can include HTML bold and italic tags, show the result in preview in a browser (I recommend Opera - its zoom feature is great!) and replace to printer codes for printing. Other codes (change CPI) can be stripped for preview, and retained for printing.

Since the basic loop is about the same for most reports, you can use OOP to create a standard text-report class.

Regards, Hilmar.

>Hi Hilmar!!
>
>Thanx buddy for ur help. I tried sending the printer codes using ??? and it worked. But one problem is still there..it automatically sends the eject command to printer.
>
>Hilmar thanx once again!!!
>
>Regards
>
>Sunny
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
Reply
Map
View

Click here to load this message in the networking platform