Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print a file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00492304
Message ID:
00492319
Views:
16
>How print a file .TXT in visual foxpro 6?

Try
DECLARE INTEGER ShellExecute IN Shell32;
  INTEGER hWnd, STRING @lpOperation,;
  STRING @lpFile, STRING @lpParameters,;
  STRING @lpDirectory, INTEGER nShowCmd
* lcfile is the text file to print
lcop = 'print'
lcdir = JUSTPATH(lcfile)
= ShellExecute(0, @lcop, @lcfile, 0, @lcdir, 6) && 6 = SW_MINIMIZE
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform