Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print a text file
Message
De
10/07/2003 15:15:25
 
 
À
10/07/2003 15:11:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00808971
Message ID:
00808975
Vues:
25
Don,

You can use shellexecute (it goes through notepad, I believe):
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd
=Shellexecute(0,"Print", "c:\anyfile.txt", "","",0)
>Can anyone advise me as to how to print a file on disk programmatically? Something like:
>
>print(c:\anyfile.txt)
>
>would be nice. This doesn't seem like it should be hard but I can't seem to find an easy way to do it.
>
>Thanks in advance.
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform