RE: Printing an ASCII file from a VFP EXE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Lee Mitchell (Leemi_at_online.microsoft.com)
Date: 09/02/04


Date: Thu, 02 Sep 2004 21:36:52 GMT

Hi Ken:

To print an ASCII file from a program, use the TYPE command. For example:

SET HEADINGS OFF
TYPE <File_name> TO PRINTER

If you want to print a ASCII report, use
REPORT FORM <form_name> TO PRINTER ASCII

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 Public Beta Now Available!! --*
Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
   http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
   http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
 
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
   - VFP5 Mainstream Support retired June 30th, 2003
   - VFP6 Mainstream Support retired Sept. 30th, 2003

>Printing an ASCII file from a VFP EXE

>When I am in the development environment, I can type this statement in the
>command window:

>MODIFY FILE filename

>Then from the 'File' menu I can select Print and setup anything I want, 4
>pages per ***, landscape, whatever and print that way. It works as
>expected

>However, when I do the samething in an EXE for my customer, the File |
Print
>selection does nothing?? Is there some other command that must be used in
an
>EXE to activate the Print functions?


Quantcast