Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Saifuddin Hussain
  Where is Saifuddin Hussain?
 Dubai
 United Arab Emirates
 Saifuddin Hussain
 To: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 Tags
Subject: RE: convert frx into txt
Thread ID: 209335 Message ID: 209383 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: Reports and Printers
Date: Sunday, December 28, 2008 8:29:58 AM         
   


> > Hi
> >
> > In dos based application I used to do the following. It is because if the printer is not available.
> >
> > set devi to prin
> > set prin to file abc.txt
> > @ say ...
> >
> > set devi to scren
> > set prin to
> > modi file abc.txt
> >
> > So, is there any way to check the output other then preview command.
> >
> > Saifuddin
>
> Hi Saifuddin
> for outpuing a report to a text file use this:
>
> repo form myreport to c:\myfile.txt ascii
> 

>
> generate only text of the report.
> see foxhelp with outputDestination.
>
> see also
>
> SET DEVICE TO SCREEN | TO PRINTER [PROMPT] | TO FILE FileName
> to file filename:Specifies a file to which @ ... SAY sends output.
> 

> if i remember well that is a code for this
>
> set device to file c:\asup.txt
> @1,0 say "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
> @2,0 say "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
> @3,0 say "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC3
> read
> 
> run/n "notepad" c:\asup.txt
> 

>
>
> Salam

Thanks Yousfi, it is very useful.

Saifuddin

ENTIRE THREAD

convert frx into txt Posted by Saifuddin Hussain @ 12/27/2008 12:09:26 PM
RE: convert frx into txt Posted by Anders Altberg @ 12/27/2008 1:39:14 PM
RE: convert frx into txt Posted by Saifuddin Hussain @ 12/27/2008 2:24:46 PM
RE: convert frx into txt Posted by Anders Altberg @ 12/27/2008 8:55:20 PM
RE: convert frx into txt Posted by Yousfi Benameur @ 12/27/2008 9:45:21 PM
RE: convert frx into txt Posted by Saifuddin Hussain @ 12/28/2008 8:29:58 AM