Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spooling Printing Problem
Message
From
19/07/2007 08:52:35
 
 
To
19/07/2007 08:17:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01241790
Message ID:
01241870
Views:
27
>>First of all, it's very important that you tell us which version you use.
>>
>>Secondly, I suggest that you don't do it this way, I suggest that you use the report writer. But, if you use a dot matrix printer, the report writer is not easy to use. In thsi case I suggest that you print to a file, and then copy the file to the printer. Something like this
>>set alternate to dummy.txt
>>set console off
>>set alternate on
>>@  7,8 say "Date"
>>@  8,8 say "Payee Name"
>>@ 10,8 say "Amount In Words"
>>set alternate off
>>set alternate to
>>set console on
>>copy file dummy.txt tp lpt1:
>
>Haven't played with this kind of printing for quite a while - nowadays I'd rather use textmerge - but IIRC Set Alternate would not catch @say output, only ? and ?? output.
>
>Sonny's Set Print On and Set Device to print would be OK, he'd only have to
>
>set print to dummy.txt
>
>before Set Print On, and then copy file when he's done.

To be honest, I wasn't sure whether this would work or not. Just like you, I haven't done it this way for ages. Anyway, I think Sergey gave Sonny the simplest solution, namely to add the line SET PRINTER TO.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform