Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing TXT Files
Message
 
 
À
05/03/2001 14:24:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00481744
Message ID:
00481973
Vues:
10
>>Hi!
>>
>>I have reports in my App. which allow users to print to TXT files. The users could later print these TXT files from outside my App using NPRINT as this App was running under Novell Netware but now we are in the process of moving to an NT based Network.
>>
>>Is there a similar program (like NPRINT) in NT?
>
>You have lots of options. You can simply invoke the ShellExecute() API against the file with the PRINTTO action, which will start up whatever the default OLE server for .TXT files is with the Print As Dialog. You can call the CopyFile() API, specifying the name of a print port or UNC as documented in both the FAQ and Win API section hjere of UT. You can pipe the output of TYPE to a port or UNC. And there's always the PRINT statement...

Thanks a lot, Ed. I think, CopyFile is a way to go.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform