Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report to raw print
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01275608
Message ID:
01275629
Vues:
8
Try

??? filetostr('myAsciifile.txt')


>I am trying to send my report to a raw printer
>
>is ther a better idea than my code below ?
>
>
>**************************************************
> report form PEDIDO TO FILE "PEDIDO1.TXT" ASCII
>
> DECLARE INTEGER CopyFile IN KERNEL32.DLL ;
> STRING @SourceFileName, ;
> STRING @DestFileName, ;
> INTEGER bFailIfExists
>IF CopyFile('PEDIDO1.TXT', 'LPT1',0) # 0
> * It was copied
>ELSE
> * it wasn't
>ENDIF
>*************************************************
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform