Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET ALTERNATE TO file printing problem
Message
 
 
To
11/12/1998 15:41:57
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00166768
Message ID:
00166837
Views:
19
Karl,

That's an End-of-file marker that ALTERNATE adds to the file. You can append the file into a temp memo, strip off the EOF and send the memo directly to the printer using ???. You can't send just a memo though you have to make VFP convert it to a character expression like this:

??? temp.mMemo + ""

You could also forget the ALTERNATE entirely and just use ??? to output everything directly to the printer.

>I'm working on a method to get immediate printing to a receipt printer (dot matrix) for point-of-sale app.
>
>I'm using SET ALTERNATE TO filename.txt and then issuing several ?? and ? lines. Then a SET ALTERNATE OFF and a CLOSE ALTERNATE. To print the file, COPY filename.txt TO prn.txt (printer on LPT1 or prn)
>
>I'm getting an error "there is not enough disk space for C:\...\prn.txt." The cause is this character, "  ", at the end of the alternate file. If I erase this character, there is no problem.
>
>Any suggestions on how to prevent this character in the alternate file or any other work around?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform