Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rawprint.vcx
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01336586
Message ID:
01336587
Vues:
14
I believe it's spelled customer. You almost get me tricked.

>It prints In amost 100 % of must printers costumers
>However some of them complain it does not print
>
>I sent a test to a costumer of mine and, he sent back the result
>
>Please take look and help me analize the problem
>
>The costumer reports same name "HP DESKJET 3420 SERIES" for 4 messages
>
>********************************
>SET SAFETY OFF
>
>lcPrinter=GetPrinter()
>= MESSAGEBOX( lcPrinter)    && costumer reports: HP DESKJET 3420 SERIES
>if empty(lcPrinter)
>   Set printer to default
>else
>   Set printer to name ALLTRIM(lcPrinter)
>ENDIF
>= MESSAGEBOX( + lcPrinter)  &&  && costumer reports: HP DESKJET 3420 SERIES
>
>Set Classlib To rawprint
>vprdev=CreateObject("PrintDev")
>= MESSAGEBOX(alltrim (("Printer",3)))  && costumer reports: HP DESKJET 3420 SERIES
>
>*If Empty(vprdev.cprintername)
>   vprdev.cprintername =  ALLTRIM(SET("Printer",3))
>= MESSAGEBOX( vprdev.cprintername)  && costumer reports: HP DESKJET 3420 SERIES
>
>*Endif
>If vprdev.oOpen()
>vprdev.cfilename = pedPrint
>   if !vprdev.oPrintFile()
>       wait window 'Erro na impressora' nowait
>   endif
>   vprdev.oClose()
>Endif
>
>Release vprdev
>Set Classlib to
>
>SET SAFETY ON
>*******************************************************
>
>Printer icon has a "?" mark
>
>The printer prints normaly from microsoft Word
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform