Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set('printer', 3)
Message
De
28/07/2008 08:56:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01334464
Message ID:
01334488
Vues:
8
I don't use rawprint myself, so I cannot help you in this case. But a wild guess is that the VFP default printer is invalid.

>I am usig rawprint.vcx, as full code in the bottom of this message
>It prints in most of my costumers PCs, but some of them complain it does not print
>
>I am using
>
> vprdev.cprintername = GetPrinter()
>
>Because I have printers prompted
>
>But some samples over the internet, states to use as below:
>
>vprdev.cprintername = Set('printer', 3)
>
>May this be the problem ?
>Could anybody take a look on the code below, and give an opinion?
>
>
>Moises
>
>
>************************************************************
>SET SAFETY OFF
>
>Set Classlib To rawprint
>vprdev=CreateObject("PrintDev")
>
>If Empty(vprdev.cprintername)
> vprdev.cprintername = GetPrinter()
>Endif
>
>vprdev.cfilename = '1pedido.txt'
>If vprdev.oOpen()
>
> if !vprdev.oPrintFile()
> wait window 'Erro na impressora' nowait
> endif
> vprdev.oClose()
>Endif
>
>Release vprdev
>Set Classlib to
>
>SET SAFETY ON
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform