Click to See Complete Forum and Search --> : Printing a HTML document?


April 21st, 1999, 01:27 PM
How can I print a HTML document? When I show the decument with the CHtmlView, it prints only the view frame. (I dont't want to use M/SDI Doc/View architect, because it will run from a dll, not from an Exe). Is there an other way to print a HTML file?

Borbély Gábor

Stefan Tchekanov
April 22nd, 1999, 08:21 AM
Try a code like this:

::ShellExecute( ::AfxGetApp()->m_pMainWnd, "print", "http://www.somehost.com/file.htm", NULL, NULL, SW_SHOW );