Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Directly to the Printer
Message
De
12/05/2003 05:48:39
 
 
À
10/05/2003 09:32:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787032
Message ID:
00787237
Vues:
20
Hilmar,
Thankyou for your reply. Actually when I sent the ??? command, it did not print till I quit VFP.

I solved the problem like this:

set printer to name 'epson'
??? 'Hello World'
set printer to

The last command forces a print.

Problem solved.

Thanks

Abdul Ahad Khan


>>Hi All,
>>I want to print a small line to the printer at 120 lines in one minute. For this I need to bypass the Windows system.
>>
>>I have tried the following:
>>
>>??? mytable.product
>>
>>I also tried:
>>
>>set device to file pp.txt
>>@ 1,1 say mytable.product
>>set device to screen
>>copy file pp.txt to prn
>>
>>both the above options print at their own time. Cant we do it like we do in DOS Fox??
>>
>>Please help
>>
>>Regards
>>
>>Abdul Ahad Khan
>
>What do you mean "at their own time" - is it too slow?
>
>I use the following approach. I create a text-file with the information to be printed, load it into RAM (FileToStr()), then send printer codes and this information to the printer with "???". It prints very fast, compared to printing with the Windows printing system - everything is printed in text-mode.
>
>My download #9991 contains a class that eliminates some of the repetitive work in creating these reports in text-mode.
>
>HTH,
>
>Hilmar.
Abdul Ahad Khan
CSi
www.csi-pk.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform