printing a html file
-
:mad: HI, I know how to print a html file using Exec command by which all the prining is done internally . But i want to whether we can do it ourself.Actually i want to change the caption in my language(other than english)in the print dialog box.Since mfc is doing it internally i don't how to change it.So kindly help.Providing some source code would be more helpfull. Thanx in advance :rose: kesh
-
:mad: HI, I know how to print a html file using Exec command by which all the prining is done internally . But i want to whether we can do it ourself.Actually i want to change the caption in my language(other than english)in the print dialog box.Since mfc is doing it internally i don't how to change it.So kindly help.Providing some source code would be more helpfull. Thanx in advance :rose: kesh
One simple way of doing that is to create webbrowser object, load url and print it using IWebBrowser2::ExecWB(OLECMD_PRINT, ...) I think of couple ways of changing title: 1) Hook PrintDlgA & PrintDlgW (there are must be plenty examples of doing that, www.microsoft.com/msj must have it for sure ) and provide you own template or printhook procedure to hook the wm_initdialog message and change the title. 2) Set windows hook (WH_CALLWNDPROCRET) for the thread and change the title after wm_initdialog was processed. Edward