Hi Martin,
Thanks for the fast solution, it works ! If ever you know the shortcut to the 'execwb' documentation, I would be intrested ...
Pascal.
>Hi Pascal,
>
>* loIE is instance of class Shell.Explorer.2
>lierr=loIE.ExecWB(6,2)
>
>
>MartinJ
>
>>I'm using the webcontrol4 found in vfp's 7.0 foundation classes.
>>
>>I would like to print the document in the webcontrol. I works using a button on the page using javascript (document.print()) but I would like to print it from a button on my form.
>>
>>Any ideas ?