Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing
Message
 
 
À
11/07/2003 09:01:40
Brian Weber
Ohio Department of Development
Columbus, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00809164
Message ID:
00809168
Vues:
37
Brian,

Try to add to the end of your code
SET PRINTER OFF
SET PRINTER TO
>Ok, im trying to print from a form to a local printer. The code i have works but only after exiting FoxPro. Essentially its some how getting stuck in the program until FoxPro releases it. here is my code
>
>set printer on
>SET PRINTER FONT 'Courier', 16
>SET DEVICE TO Printer
>@ 5,5 SAY  thisform.pageframe.page4.txtTitle.value
>@ 6,5 SAY thisform.pageframe.page4.txtFirstname.value
>@ 7,5 SAY thisform.pageframe.page4.txtlastname.value
>@ 8,5 SAY thisform.pageframe.page4.txtaddress.value
>@ 9,5 SAY thisform.pageframe.page4.txtapartment.value
>@ 10,5 SAY thisform.pageframe.page4.txtcity.value
>@ 11,5 SAY thisform.pageframe.page4.txtstate.value
>@ 12,5 SAY thisform.pageframe.page4.txtzip.value
>@ 13,5 SAY thisform.pageframe.page4.txtphone.value
>@ 14,5 SAY thisform.pageframe.page4.txtemail.value
>
>
>any suggestions as to how to make it print as soon as the button is hit?
>TIA
>Brian
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform