Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing A HTML Document In IE From VFP
Message
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00515813
Message ID:
00515927
Views:
12
>>It looks like OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER are VB constants, do you have them defined in your program? Good Luck,
>
>No, they are not defined in the code snippet which I have, nor have I been able to find any documentation as to what they should be.
>
>Regards,
>Kevin

Okay, it looks like OLECMDID_PRINT should be defined as 6. I got that info here:
http://msdn.microsoft.com/library/psdk/com/oen_a2z_22sk.htm

OLECMDEXECOPT_DONTPROMPTUSER should be defined as 2. Got that info here:
http://msdn.microsoft.com/library/psdk/com/oen_a2z_5k38.htm

Give it a try, either by defining those constants, or by just substituting the numbers for the constants in the third line, like so:
oIE.ExecWB( 6, 2, 0, 0)
Good luck,
John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform