Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print rich text from a Text Box
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00145964
Message ID:
00146318
Views:
37
Thanks again!

>>Thanks for the info, George! I am not familiar with ShellExecute() - I assume it is a call to something in the Win32 api: does this allow you to run an EXE with its command line - like the VFP's RUN command?
>>
>Hi Rick,
>
>ShellExecute is not part of what VFP considers the API, yet it's part of Windows. Here's the information you'll need:
>DECLARE INTEGER ShellExecute IN Shell32;
>  INTEGER hwnd, STRING @lpOperation, STRING @lpFile,;
>  STRING @lpParameters, STRING @lpDirectory, SHORT nshow
>lcoperation = 'print'
>lnshow = 7 && Minimized/inactive
>* lcfile is the file to print
>lcdir = JUSTPATH(lcfile) && VFP 5.0 in Foxtools
>lcparms = ""
>lnresult = ShellExecute(0, @lcoperation, @lcfile, @lcparms, @lcdir, lnshow)
>hth,
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Reply
Map
View

Click here to load this message in the networking platform