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:
00146431
Views:
36
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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform