Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rawprint.vcx
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Rawprint.vcx
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01336586
Message ID:
01336586
Vues:
89
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform