[英]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. 这是一个简单的问题。
I made a VB.Net (framework4.0) software for converting pptx and docx files to PDF files. 我制作了一个VB.Net(framework4.0)软件,用于将pptx和docx文件转换为PDF文件。
It uses Microsoft.Office.Interop.PowerPoint and Word for converting files. 它使用Microsoft.Office.Interop.PowerPoint和Word转换文件。
I want to distribute this software to a closed group. 我想将此软件分发给一个封闭的小组。
But, when people run the program, it does not work. 但是,当人们运行该程序时,它将无法运行。 It crashes. 它崩溃了。
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.