printing html file
-
how can I print html code as it looks in internet exploer using VB for example.. the text has following html code
< html > < b >hello! how are you !!! < /b > < /html >
vb supposes to print hello! how are you !!! in bold.Do you mean displaying a web page in a VB program? You can use the Web Browser control on your form to do that. -- Ian Darling
-
Do you mean displaying a web page in a VB program? You can use the Web Browser control on your form to do that. -- Ian Darling
-
I want to print it.. I dont' know what to use.. all the given html code should be printed as we see on the web browser.
-
how can I print html code as it looks in internet exploer using VB for example.. the text has following html code
< html > < b >hello! how are you !!! < /b > < /html >
vb supposes to print hello! how are you !!! in bold.Hi, If you are using MS Internet controls a.ka Web Browser control then you could use. In the plethora of constants, the following can be found as a member of SHDocVwCtl.OLECMDID to be used as a parameter to ExecWB... Const OLECMDID_PRINT = 6 Const OLECMDID_PRINT2 = 49 (&H31) Const OLECMDID_PRINTPREVIEW = 7 Const OLECMDID_PRINTPREVIEW2 = 50 (&H32) The Browser control exposes ExecWB which is simply an OLE execution/action method. for example... objBrowser.ExecWB OLECMDID_PRINT Hope this helps. Regards Benkku
-
Hi, If you are using MS Internet controls a.ka Web Browser control then you could use. In the plethora of constants, the following can be found as a member of SHDocVwCtl.OLECMDID to be used as a parameter to ExecWB... Const OLECMDID_PRINT = 6 Const OLECMDID_PRINT2 = 49 (&H31) Const OLECMDID_PRINTPREVIEW = 7 Const OLECMDID_PRINTPREVIEW2 = 50 (&H32) The Browser control exposes ExecWB which is simply an OLE execution/action method. for example... objBrowser.ExecWB OLECMDID_PRINT Hope this helps. Regards Benkku
-
The CmdExecOption parameter is not optional so use... objBrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER Regards Benkku