1. 程式人生 > >How to embed Excel in a .NET WinForms App

How to embed Excel in a .NET WinForms App

  1. Run AxImp on OWC11.dll, which will have been installed in the microsoft shared\web components directory (ie C:\Program Files\Common Files\microsoft shared\Web Components\11\).  AxImp.exe can be found in the Windows SDK (ie, C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\AxImp.exe).
  2. In Visual Studio project, drag OWC11.dll to a toolbox tab and drop the Excel component on form.

Voila.  When it comes deployment time, you’ll need the AxInterop.OWC11.dll.