Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing TXT Files
Message
From
05/03/2001 14:24:00
 
 
To
04/03/2001 12:38:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00481744
Message ID:
00481968
Views:
9
>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...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform