简体   繁体   English

想要通过使用microsoft.office.interop将pptx或docx转换为pdf,我应该包括哪些文件以进行分发?

[英]want to convert pptx or docx to pdf by using microsoft.office.interop, what files should I include for distribution?

Here is a simple question. 这是一个简单的问题。

  1. I made a VB.Net (framework4.0) software for converting pptx and docx files to PDF files. 我制作了一个VB.Net(framework4.0)软件,用于将pptx和docx文件转换为PDF文件。

  2. It uses Microsoft.Office.Interop.PowerPoint and Word for converting files. 它使用Microsoft.Office.Interop.PowerPoint和Word转换文件。

  3. I want to distribute this software to a closed group. 我想将此软件分发给一个封闭的小组。

  4. But, when people run the program, it does not work. 但是,当人们运行该程序时,它将无法运行。 It crashes. 它崩溃了。

  5. I think that I didn't include proper DLL files. 我认为我没有包含适当的DLL文件。 (I already included Microsoft.Office.Interop.PowerPoint.dll files) (我已经包含了Microsoft.Office.Interop.PowerPoint.dll文件)

plus, I want to make this program executable on a computer without Microsoft Office. 另外,我想使该程序在没有Microsoft Office的计算机上可执行。 Is it possible to use the Office.Interop on a computer w/o Office? 是否可以在没有Office的计算机上使用Office.Interop?

So, what DLL files should I include for distribution? 那么,我应该包括哪些DLL文件进行分发?

or is there any other problem? 还是还有其他问题?

Thanks a lot!! 非常感谢!!

As Prahlad notes, you cannot use Office.Interop without having Office installed. 如Prahlad所述,如果未安装Office,则无法使用Office.Interop。 Office.Interop is just the bridge for your .Net types to consume Office's COM types Office.Interop只是您的.Net类型使用Office的COM类型的桥梁

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Microsoft.Office.Interop 分发应用程序的最佳实践 - Best practice distributing app using Microsoft.Office.Interop 使用Microsoft.Office.Interop的VB .NET InvalisCastException - VB .NET InvalisCastException using Microsoft.Office.Interop 如何使用 Microsoft.Office.Interop 对象初始化 NetOffice.WordApi 对象? - How can I initialize NetOffice.WordApi objects using a Microsoft.Office.Interop objects? 使用Microsoft.Office.Interop在C#中的Excel工作表中行和列范围的条件着色 - using Microsoft.Office.Interop Conditional coloring of the rows and column range in a excel sheet in C# 使用Microsoft.Office.Interop根据样式从段落中提取字符串数组 - Extracting an array of string from a paragraph based on style using Microsoft.Office.Interop 找不到Microsoft.Office.Interop Visual Studio - Cannot find Microsoft.Office.Interop Visual Studio 我可以使用Microsoft Office 2010:主要互操作程序集将word,excel转换为PDF - Can I use Microsoft Office 2010: Primary Interop Assemblies to convert word,excel to PDF 无法使用Microsoft.Office.Interop,c#.net从Outlook日历数据中获取发件人的emailId - Is there no way to obtain sender's emailId from outlook calender data using Microsoft.Office.Interop , c#.net MS Office 互操作 - DOCX 到 PDF 带密码 - MS Office Interop - DOCX to PDF with a password Excel编程:Microsoft.office.Interop的HRESULT异常:0x800A753F - Excel Programming: Exception from HRESULT: 0x800A753F at Microsoft.office.Interop
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM