Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebBrowser ActiveX
Message
 
À
12/02/1999 11:13:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00187044
Message ID:
00187251
Vues:
27
>Hello everybody!
>When I Navigate to File or URL and have it seen at WB ActiveX I can right click and print this. Is there any way to print it using method or something else.

There are a couple of ways to print HTML using IE. The easiest is to use the ExecWB method, which allows access to most of the menu options under program control. You can look up the OLECMDID codes on MSDN - to print the value is 6:

*** Parm2:  1 - Print Dialog, 2 - NoPrompt
THISFORM.oBrowser.ExecWB(6,2,0,0)
If you simply want to print an HTML document you can also call the MSHTML engine directly by using the following code:

lcFile = 'c:\temp\__preview.htm'
run /n rundll32 mshtml.dll,PrintHTML &lcFile
Note that this routine will prompt for a printer setup dialog.

+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform