>>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.htmOLECMDEXECOPT_DONTPROMPTUSER should be defined as 2. Got that info here:
http://msdn.microsoft.com/library/psdk/com/oen_a2z_5k38.htmGive 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