Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cant find Printer...
Message
 
 
À
06/05/2003 14:33:06
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00785519
Message ID:
00785554
Vues:
11
>FUNCTION F_TEM_IMPRESSORA()
> LOCAL xret
> =APRINTERS(xvimprew2)
> IF TYPE("xvimprew2")=="U"
> *F_MENSA ->MESSAGEBOX
>  =F_MENSA(64,"Antes de imprimir, você deve instalar uma impressora."+CHR(13)+ ;
>     "Para tal, clique no botão 'Iniciar', aponte para 'Configurações', clique"+CHR(13)+ ;
>     "em 'Impressoras' e, em seguida, clique duas vezes em 'Adicionar"+CHR(13)+ ;
>     "Impressora'.",64,psisresu)
>  xret=.F.
> ELSE
>  xret=.T.
> ENDIF
> RELEASE xvimprew2
> RETURN xret

>ENDFUNC


Your code can be replaced with this:
  Function F_TEM_IMPRESSORA
    Return (APRINTERS(laPrinters)>0)
  ENDFUNC
I have an USB Printer and is show up by APRINTERS()
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform