Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print ascii file ???
Message
From
25/09/1997 09:27:03
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00041223
Message ID:
00051582
Views:
41
>> Your right it's a good idea but it's meen that i need a table with a
>> memo
>> field only to print a ascii file.
>> And i dont need to play with the font because the ascii file was
>> command
>> code for printer
>
>My preferred method is to use something like this:
>
>! PRINTFIL &lcFileName
>
>where PRINTFIL.BAT contains:
>
>@echo off
>copy /b %1 lpt1
>erase %1
>exit
>
>This copies the file, in binary mode (bypassing any Chr(26)s that it
>sees) to the LPT1 port. You can substitute any valid port for this.
>The exit at the end is to ensure that Windows '95 closes the DOS box.
>
>It's ugly to watch, but it works better than anything else I've tried.
>
>/Paul

Does this work with com ports also? I need to send control code out the com ports. Also, is there a way to run the dos in the background without the big black ugly screen showing up? I tried setting the props in the foxrun.pif to a minimized window, but no luck!

TIA
tc
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform