且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以部署在Excel中制作的VB应用程序作为独立应用程序?

更新时间:2022-10-15 08:17:20

否。不需要转换为独立的应用程序。



如果您熟悉VB6(并且可以访问它,不再出售),则可以创建一个VB6应用程序。引用excel COM组件(仍然需要安装在每个目标PC上)。



否则,构建一个应用程序。使用VB.NET并使用Office VSTO 2010(需要引用Office PIA)



如何:通过主互操作程序集目标办公室应用程序


Basically wondering if there's a way for me to create a VB application in Excel and have it run without a full version of MS Office. The VB application would load an Excel sheet that would import a CSV onload, then print a PDF of the sheet and close.

If you have any questions, let me know.

No. Not without converting to a standalone application.

If you had were familiar with VB6 (and had access to it; it's no longer for sale), you could create a VB6 app. that references the excel COM components (still need to be installed on each target PC).

Otherwise, build an app. using VB.NET and use Office VSTO 2010 (need to reference the Office PIAs)

How to: Target Office Applications Through Primary Interop Assemblies