asp.net实现word转html文件
为了解决此问题,这几天找了很多种方法,包括在网页中不用fileupload来打开电脑中的文件
(不得不说web还是存在一定弊端的)
包括在IIS管理器中设置目录浏览功能(虽然有一定的进展,但是目前还是没能攻破这一难处),话不多说先上主题。
效果图
首先可以看一下word中显示的内容:

网页中呈现的图示:

可以看到文档中的文字、数学公式以及图片都能转化出来。格式还没有彻底的测试,但是可以肯定不会有大的变化。。
Web.config中的内容
<?xml version="1.0" encoding="utf-8"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<sectionGroup name="bundleTransformer">
<section name="core" type="BundleTransformer.Core.Configuration.CoreSettings, BundleTransformer.Core" />
</sectionGroup>
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" />
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatf

最低0.47元/天 解锁文章
191

被折叠的 条评论
为什么被折叠?



