Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print HTML?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00855791
Message ID:
00855892
Vues:
18
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform