Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set device to print
Message
From
30/12/2002 08:45:56
 
 
To
29/12/2002 19:03:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00736461
Message ID:
00736543
Views:
7
>Once, a very long time ago, I learned the elements of the FoxPro+ language for DOS. And I wrote a programme to store addresses, sort them and write the selected addresses in a format for 3x8 labels to a file (I never printed directly from FoxPro+). It was not a very elegant programme but it worked fine and I still rely on the corresponding DBF-table for my 1000plus addresses.
>Now I have a choice. I can either learn the Visual FoxPro 7.0 language (I own the programme). This will take quite some time. Or I find somebody who can tell me what to write instead of "set device to print" when I want to write a file to disk. Perhaps it is easy, perhaps it is not and I will have to do it the hard way.


You might get away with this
Try:

set printer to c:\test.txt
set printer on
for i=1 to 10
? 'Line' + allt(str(i))
next
set printer off
set printer to

Will write test.txt without any problem

Now with littlebit of modifications to yr source code u might get it to
work under VFP.

Hope this help :)
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform