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. File Convert .DOCX to .png

File Convert .DOCX to .png

Scheduled Pinned Locked Moved C#
5 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.
  • R Offline
    R Offline
    raushan_9
    wrote on last edited by
    #1

    Hello, In a Application i used Microsoft.office reffernce. Then .Docx file Converts in .PNG. But Now i have need without installed Microsoft Office Converts the File .DOCX to .PNG. I am using DocumentFormat.OpenXml.dll, but i am unable to convert .docx to .PNG. So please Suggest me How i can convert .docx to .PNG without having Microsoft Office Regards Raushan Kumar

    J L 2 Replies Last reply
    0
    • R raushan_9

      Hello, In a Application i used Microsoft.office reffernce. Then .Docx file Converts in .PNG. But Now i have need without installed Microsoft Office Converts the File .DOCX to .PNG. I am using DocumentFormat.OpenXml.dll, but i am unable to convert .docx to .PNG. So please Suggest me How i can convert .docx to .PNG without having Microsoft Office Regards Raushan Kumar

      J Offline
      J Offline
      JF2015
      wrote on last edited by
      #2

      Have you tried this converter: http://www.verydoc.com/doc-to-any/docx-to-png.html[^] I think it's commercial but it can be called by C#, so maybe you give it a try.

      1 Reply Last reply
      0
      • R raushan_9

        Hello, In a Application i used Microsoft.office reffernce. Then .Docx file Converts in .PNG. But Now i have need without installed Microsoft Office Converts the File .DOCX to .PNG. I am using DocumentFormat.OpenXml.dll, but i am unable to convert .docx to .PNG. So please Suggest me How i can convert .docx to .PNG without having Microsoft Office Regards Raushan Kumar

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

        raushan_9 wrote:

        So please Suggest me How i can convert .docx to .PNG without having Microsoft Office

        By reading articles on CodeProject, like Manipulate Docx with C# without Microsoft Word installed with OpenXML SDK[^] :)

        I are Troll :suss:

        R 1 Reply Last reply
        0
        • L Lost User

          raushan_9 wrote:

          So please Suggest me How i can convert .docx to .PNG without having Microsoft Office

          By reading articles on CodeProject, like Manipulate Docx with C# without Microsoft Word installed with OpenXML SDK[^] :)

          I are Troll :suss:

          R Offline
          R Offline
          raushan_9
          wrote on last edited by
          #4

          Hello Eddy Vluggen, Thanks a lot for your good reply. but by using this article we can just manipulate .docx file, I have need to convert in Image File like(PNG\JPEG), still i have not get any idea for convert .docx to .PNG. I have done by using the Microsoft word reference, but i need to run without Microsoft word installed. Process which i have done:- open document in word application then just split page wise in document after that copyaspicture. I have called user32.dll native API for clipboard manipulation and then transfer file in MetaFile using intptr and then save the file in(PNG\JPEG) So please give some idea how can i copy picture in clipboard ya any otherway without office reference. Thanks Raushan Kumar

          L 1 Reply Last reply
          0
          • R raushan_9

            Hello Eddy Vluggen, Thanks a lot for your good reply. but by using this article we can just manipulate .docx file, I have need to convert in Image File like(PNG\JPEG), still i have not get any idea for convert .docx to .PNG. I have done by using the Microsoft word reference, but i need to run without Microsoft word installed. Process which i have done:- open document in word application then just split page wise in document after that copyaspicture. I have called user32.dll native API for clipboard manipulation and then transfer file in MetaFile using intptr and then save the file in(PNG\JPEG) So please give some idea how can i copy picture in clipboard ya any otherway without office reference. Thanks Raushan Kumar

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

            raushan_9 wrote:

            So please give some idea how can i copy picture in clipboard ya any otherway without office reference.

            Convert it to Html[^], and render the Html as a picture :)

            I are Troll :suss:

            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