Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00046370
Message ID:
00046393
Views:
30
>i saw a post earlier about using the type command to send text files to the printer.
>it works great, except it's sending output to my main window as well as the printer.
>it won't take a noconsole and it does the same thing with talk set on or off.
>any ideas?

Gary,

If the file is small enough, try this -

lcfile = GETFILE('TXT')
lcmac = 'NOTEPAD /P ' + lcfile
RUN /N7 &lcmac

This will cause the notepad to print the text file. It does have some shortcomings, however. Note that this same technique can be used with the wordpad program as well.

HTH,

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform