|
Home > Archive > FoxPro Help and Support > December 2005 > How do you cause a text file to be printed from a procedure in a form?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How do you cause a text file to be printed from a procedure in a form?
|
|
|
| Hi,
This is VFP6 SP5.
My code creates a text file and then I want to send the file to the
printer. I have spent hours trying to find the right command in Help
(no comment)! I'm sure it is simple, but I simply can't find how to
"print a file" or "print file" or whatever.
Any help would be appreciated,
Jud
| |
| Fred Taylor 2005-12-03, 8:24 pm |
| TYPE filename.txt TO PRINTER
--
Fred
Microsoft Visual FoxPro MVP
"Jud" <judsonrp@fastmail.fm> wrote in message
news:1133656616.168242.277230@g14g2000cwa.googlegroups.com...
> Hi,
> This is VFP6 SP5.
> My code creates a text file and then I want to send the file to the
> printer. I have spent hours trying to find the right command in Help
> (no comment)! I'm sure it is simple, but I simply can't find how to
> "print a file" or "print file" or whatever.
>
> Any help would be appreciated,
> Jud
>
| |
|
| Thanks Fred,
I haven't used TYPE in years, memory failed me. It works, but it adds
the following:
\/ This is ASCII 12 (can't recall what it does).
c:\work\printersavef
ile.txt 12/03/2005
1
or
c:\work\printersavef
ile.txt 12/03/2005
2
to each file and I would rather it did not.
Any tricks I can use to avoid those lines?
Thanks for your help,
Jud
| |
|
| Me again,
Honestly, there is a character in the lines just above the "c:\..."
lines. But, I guess Google doesn't print those low ascii numbered
characters.
Jud
| |
| Fred Taylor 2005-12-04, 3:24 am |
| SET HEADINGS OFF
TYPE yourfile.txt TO PRINTER
--
Fred
Microsoft Visual FoxPro MVP
"Jud" <judsonrp@fastmail.fm> wrote in message
news:1133663626.121419.29150@o13g2000cwo.googlegroups.com...
> Thanks Fred,
> I haven't used TYPE in years, memory failed me. It works, but it adds
> the following:
>
> \/ This is ASCII 12 (can't recall what it does).
>
> c:\work\printersavef
ile.txt 12/03/2005
> 1
>
> or
>
>
> c:\work\printersavef
ile.txt 12/03/2005
> 2
>
> to each file and I would rather it did not.
>
> Any tricks I can use to avoid those lines?
> Thanks for your help,
> Jud
>
| |
|
| Fred, thank you very much.
Jud
|
|
|
|
|