Convert MS word file to image in .Net C #

I want to convert Microsoft word to image file using .Net C #. also suggest any open source code. Thanks for your help.

+2


a source to share


4 answers


Virtual printer drivers are a common way to do this.

You can use the MODI virtual printer included in the office to print to TIFF.



Since PDF is a requirement, there are a number of free virtual printers for PDF. Office 2010 has a "Save to PDF" feature. Also worth looking at Open Office, opening MS Office documents and saving to PDF. I'm not 100% sure which API it is available, but open source

+1


a source


What you are asking is a very difficult problem to solve, there are commercial products that are designed to do this: Aspose.Total for .NET from the larger names in this field.



For free or open source that you can do this with, I don't know of one that will directly meet your needs.

0


a source


Hmm yeah, in one hand it's a hard problem in the other, it's not that hard. There are several ways that you could go before buying commercial items. At the idea level:

  • Your application. will open this file in the word ms in full screen and build a bitmap by doing a screen - cropping the borders and passing commands to display the next page.
  • Your application. will contain the word component ms (the word object), do the same as before, but grab only this component.

Other resources:

0


a source


You can use virtual printer and send print command in ms word.

You can find examples of C # codes here http://www.pdfpilot.com/virtual-printer-howto-c-sharp.html

0


a source







All Articles