Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Only prints 1 page
Message
From
26/11/2001 15:49:52
 
 
To
26/11/2001 06:50:55
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00585073
Message ID:
00585983
Views:
35
>
ShellExecute(0, "Print", "MyHtml.HTM", .NULL., "C:\", 0)
>And that returns 42, it will open the file, but printing doesn't work.

Using the API directly? I think you may need to send the FullPath of the file in that case. This works for me though:
STRTOFILE('<html><body>hey <b>there</b></body></html>', 'htmltest.htm')
oShellExecute = NEWOBJECT('_shellexecute', HOME() + '\ffc\_environ.vcx')
?oShellExecute.ShellExecute('htmltest.htm', '', 'Print')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform