C#使用的微软官方的插件方法将office文件转换为pdf文件

上传者: ayouyouyuer | 上传时间: 2021-09-28 20:39:13 | 文件大小: 747KB | 文件类型: RAR
项目使用VS2017打开,.net 2.0下运行。 项目使用的微软官方的插件方法,可以将doc, docx, xls, xlsx, ppt, pptx文件转换为pdf文件,但是需要: 1、用户需要首先安装一个SaveAsPDFandXPS.exe的工具; 2、如果用户是xp系统,则: 2.1 如果用户安装的是office 2007,则用户在安装office 2007的时候必须要安装Visual Basic for Application 和 Microsoft Office Document Imaging这2个选项,否则转换失败; 2.2 如果用户安装的是office 2010,则在安装office 2010时必须要安装Visual Basic for Application选项,然后从office 2007安装包里面安装Microsoft Office Document Imaging(因为2010删除了这个选项,好麻烦~),否则转换失败; 2.3 xp不能安装office 2013/2016; 3、如果用户是win7系统,则: 3.1 如果用户安装的是office 2007,则用户在安装office 2007的时候必须要安装Visual Basic for Application 和 Microsoft Office Document Imaging这2个选项,否则转换失败; 3.2 如果用户安装的是office 2010,则在安装office 2010时必须要安装Visual Basic for Application选项(win7 + office 2010不需要安装Microsoft Office Document Imaging) 3.3 如果用户安装的是office 2013或2016,则不需要额外选项; 4、如果用户是win10系统,则: 4.1 如果用户安装的是office 2007,则用户在安装office 2007的时候必须要安装Visual Basic for Application这个选项,(win10 + office 2007不需要安装Microsoft Office Document Imaging)否则转换失败; 4.2 如果用户安装的是office 2010,则在安装office 2010时必须要安装Visual Basic for Application选项(win10 + office 2010不需要安装Microsoft Office Document Imaging) 4.3 如果用户安装的是office 2013或2016,则不需要额外选项; 5、如果用户安装了wps 2016或者wps 2019也可以正常转换。

文件下载

资源详情

[{"title":"( 30 个子文件 747KB ) C#使用的微软官方的插件方法将office文件转换为pdf文件","children":[{"title":"WindowsFormsApp2","children":[{"title":"WindowsFormsApp2.sln <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"WindowsFormsApp2","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"sqlite3","children":[{"title":"storage.ide-wal <span style='color:#111;'> 1.10MB </span>","children":null,"spread":false},{"title":"storage.ide-shm <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"storage.ide <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"db.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"SaveAsPDFandXPS.exe <span style='color:#111;'> 932.73KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2","children":[{"title":"Form1.cs <span style='color:#111;'> 16.05KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.csproj <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 477B </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WindowsFormsApp2.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.pdb <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"WindowsFormsApp2.csproj.GenerateResource.cache <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.56KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.csprojAssemblyReference.cache <span style='color:#111;'> 6.69KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 753B </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.csproj.ResolveComReference.cache <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"WindowsFormsApp2.pdb <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApp2.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明