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#
  4. Convert HTML to DOC in C#.Net

Convert HTML to DOC in C#.Net

Scheduled Pinned Locked Moved C#
csharpquestionhtmlhelp
4 Posts 3 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.
  • V Offline
    V Offline
    vivek_r
    wrote on last edited by
    #1

    Hi all, How can I convert a HTML file to .Doc file in C#.net? Currently i am using ghtmldoc.exe with arguments "--webpage -f " + DocFile + " " + html file". However the conversion is successful but the resulting Doc file is missing images in it. Can somebody help me out or knows some other workaround to convert HTML to DOC.

    Happy Coding, Vivek Rathore

    T L 2 Replies Last reply
    0
    • V vivek_r

      Hi all, How can I convert a HTML file to .Doc file in C#.net? Currently i am using ghtmldoc.exe with arguments "--webpage -f " + DocFile + " " + html file". However the conversion is successful but the resulting Doc file is missing images in it. Can somebody help me out or knows some other workaround to convert HTML to DOC.

      Happy Coding, Vivek Rathore

      T Offline
      T Offline
      tom572007
      wrote on last edited by
      #2

      The easiest way is to write HTML in your .doc file, because .doc files support HTML

      V 1 Reply Last reply
      0
      • T tom572007

        The easiest way is to write HTML in your .doc file, because .doc files support HTML

        V Offline
        V Offline
        vivek_r
        wrote on last edited by
        #3

        But how can i write images of html to doc. This is what i need to do?

        Happy Coding, Vivek Rathore

        1 Reply Last reply
        0
        • V vivek_r

          Hi all, How can I convert a HTML file to .Doc file in C#.net? Currently i am using ghtmldoc.exe with arguments "--webpage -f " + DocFile + " " + html file". However the conversion is successful but the resulting Doc file is missing images in it. Can somebody help me out or knows some other workaround to convert HTML to DOC.

          Happy Coding, Vivek Rathore

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I'd like to add to above post that you can embed pictures using the MIME libraries that come with .NET. Research the "webarchive" format, create an *.MHT file with pictures and rename to *.DOC :)

          I are troll :)

          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