Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebBrowser ActiveX
Message
 
To
12/02/1999 11:13:16
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00187044
Message ID:
00187251
Views:
26
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform