Reading .doc file without launching MSWord

后端 未结 3 858
广开言路
广开言路 2021-01-19 10:34

I\'m trying to open .doc file and read its content. But i can\'t find any way how to do this without launching MSWord.

Now I have following code:

Mic         


        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 11:18

    Two possibilities: either use Microsoft's spec to write your own parser for the .doc format, or use an existing library for the purpose (e.g., from Aspose). Unless you have a couple of spare years to spend on the task, the latter is clearly the correct choice.

提交回复
热议问题