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:
00146800
Views:
29
Thanks Dave,
I'll download it and check it out!

>Rick,
>
>Over on my website is a wrapper class for ShellExecute it's in the spyin.zip file. I got this to work fine and dandy:
>
>set classlib to dfwinapi
>lcw = "C:\Program Files\Accessories\WORDPAD.EXE"
>lcFile = "C:\Program Files\MSOffice\Office\Headers\APPTHDR.RTF"
>x = create( "shellexecute", lcw, "", '/p "' + lcFile + '"' )
>? x.execute()
>
>I could not get it to work with an Operation of print, and the filename had to be " delimited since it had a space in the name.
>
>>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?
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