Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print a text file
Message
From
10/07/2003 15:15:25
 
 
To
10/07/2003 15:11:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00808971
Message ID:
00808975
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform