Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print HTML?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00855791
Message ID:
00855892
Views:
17
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform