List Info

Thread: Printing from CDHtmlDialog




Printing from CDHtmlDialog
user name
2006-09-14 09:00:00
Graeme Townsend wrote:
> Hi All,
> 
> I have a dialog class derived from CDHtmlDialog that
views/displays a html
> file.
> 
> Can anyone advise me of an easy way to print the html
view?

You can call the print() function on the window object.

> (Or indeed another way to programmatically open then
print a html file?)

How about calling ShellExecute() with the
"print" verb?  This should
open the page in user's default browser for printing.

--
Ehsan

------------------------------------------------------------
--------------
The MSVC list is hosted on a Windows NT(TM) machine running
L-Soft
international's LISTSERV(R) software.  For
subscription/signoff info
and archives, see http:/
/peach.ease.lsoft.com/archives/msvc.html .
                             COPYRIGHT INFO:
http://peach.ease.lsoft.com/scripts/wa.ex
e?SHOWTPL=COPYRIGHT&L=MSVC
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )