Programmatically (C#) convert Excel to an image

前端 未结 6 791
轻奢々
轻奢々 2020-12-29 11:32

I want to convert an excel file to an image (every format is ok) programmatically (c#). Currently I\'m using Microsoft Interop Libraries & Office 2007, but it does not s

6条回答
  •  梦毁少年i
    2020-12-29 11:51

    If you don't mind Linux (style), you can use OpenOffice (or LibreOffice) to convert the xls first to pdf, then use ImageMagic to convert the pdf to image. A basic guide can be found at http://www.novell.com/communities/node/5744/c-linux-thumbnail-generation-pdfdocpptxlsimages .

    Also, there seems to be .Net APIs for both of the programs mentioned above. See: http://www.opendocument4all.com/download/OpenOffice.net.pdf and http://imagemagick.net/script/api.php#dot-net

提交回复
热议问题