Ho使用带有互操作DLL的C#将doc文件转换为HTML字符串 [英] Ho to convert doc file to HTML string using C# with out interop DLL

查看:94
本文介绍了Ho使用带有互操作DLL的C#将doc文件转换为HTML字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用C#将.doc文件字节数组转换为html字符串而不使用interop dll并安装Ms office



有没有办法做到这一点?



我尝试了什么:



我已经去了多个库但是所有付款,我没有找到任何在内存流中工作的库而没有保存目标文件路径或没有给出源文件路径

解决方案

阅读: c# - 从Word文档转换为HTML - 堆栈溢出 [ ^ ]


您可以尝试DocX。不确定它是.doc文件还是.docx文件。



NuGet画廊| DocX 1.3.0 [ ^ ]

I have to convert .doc file byte array to html string using C# without using interop dll and Ms office installed

is there any way to do that?

What I have tried:

I have gone multiple libraries but all are paid and I didn't find any library which does the work in memory stream without saving the destination file path or without giving the source file path

解决方案

Read this : c# - Convert from Word document to HTML - Stack Overflow[^]


You can try DocX. Not sure if it does .doc files or only .docx ones.

NuGet Gallery | DocX 1.3.0[^]


这篇关于Ho使用带有互操作DLL的C#将doc文件转换为HTML字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆