Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. printing a html file

printing a html file

Scheduled Pinned Locked Moved C / C++ / MFC
c++htmlhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 527726
    wrote on last edited by
    #1

    :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

    A 1 Reply Last reply
    0
    • U User 527726

      :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

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups