Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing TXT Files
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00481744
Message ID:
00481973
Views:
11
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform