>>I am now successfully viewing HTML in a VFP form using the ActiveX browser. However, I cannot figure out how to print it. The HTML is a file on disk created from a VFP report using XFRX. This has to be simple. (I hope.)
>
>Simply put:
>
>oWebBrowser.document.execCommand("Print")
>
>In a command button to print the page.
>
>HTH :-)
Gerald,
I found the solution to the margin problem. I just set the margins in Internet Exporer Print Setup to as low as they would go and removed the header and footer macros. It now prints just fine. I'll just have to tell the customers to do that if they want to print.
Thanks again for your help. I was hoping it would be that simple.
You wouldn't know if there is a way to set those margins and macros programmaticly would you?
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn