Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to a USB printer in XP - Follow up
Message
De
16/02/2007 10:35:26
 
 
À
16/02/2007 09:45:07
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Versions des environnements
Visual FoxPro:
FoxPro Dos
OS:
Windows XP
Divers
Thread ID:
01195473
Message ID:
01196562
Vues:
14
>>>>>>I've looked at the old code and found it's simply printing the report (at the end of a dump) line by line (using ? and ??) but with devi set to prin. It's been decided that this task would most easily be tackled by Set devi to file, letting the user know where we're putting it. Then they can print off or not the file, at their leisure, say from Windows, and we don't need to worry about USB printer or network.
>>>>>
>>>>>IIRC, Set Device is for the output of @say commands. For printing into a file you need to
>>>>>
>>>>>
set printer to myfile.txt
>>>>>set printer on
>>>>>*-- bunch of ? and ?? statements here
>>>>>set printer off
>>>>>set printer to
>>>>>
>>>>
>>>>OK, maybe so. Thanks.
>>>
>>>For ?, ?? as I remember "set alternate".
>>>Cetin
>>
>>Ok. Thanks also, Cetin
>
>Set Alternate is, um, an alternate way. The downside is that when you use that, when you close the output, it adds an eof marker (chr(26)) at the end of the file, which may cause trouble if you try to add to the file later - some software may take it seriously (append from command, probably, then some editors) and refuse to see anything beyond that marker.

Roger that

Thanks
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform