Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
?? & ??? issue with printer,which is best
Message
De
09/03/2004 20:59:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
09/03/2004 20:52:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00884349
Message ID:
00884672
Vues:
14
Because, when you send directly to the printer with "??", the Windows printer driver can interfere. That's why I suggest that you first write everything to a file, using ? and ??. Then, send everything to the printer, all at once, with ???.

For printing in text-mode, perhaps my download #9991 can help you.

>Hi,
>
>Thank for your advise.
>Some of my printer function is not working under ??
>command even thought I though I think of using them.
>
>For example
>
>Actual command
>
>Chr(27)+chr(83)+chr(1)
>
>My code example under VFP list below is not working,
>I won't know why. Any ideal ?
>
>* sample NOT working using ??
>* the chr(27) is taken out as
>* font 'control' is acting on behalf of it
>SET PRINTER FONT "Control",10
>?? chr(83)+chr(1)
>
>
>* sample working using ???
>??? chr(27)+chr(83)+chr(1)
>
>
>
>
>
>
>>I use ? and ?? to prepare a text file. Things will NOT print directly to the printer, unless you give special commands.
>>
>>Then, I load the file into memory (FileToStr()), and send it to the printer with ???.
>>
>>The difference between ? and ?? is that ? will start a new line first.
>>
>>I didn't have problems with ???, but if you do have problems, there is a download by Ed Rauh, that is supposed to solve those problems. Text gets printed through the Windows API.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform