c# - Accessing an excel Project from A Winform Project in same Solution -


i trying open excel project in solution winform application. please note:

  1. winform starting project.
  2. i can add winform reference in excel can not add excel reference in winform project.

screenshot of both projects in same solution

as mentioned cant find excel project in add reference>solution of winform project. cant add manually (invalid dll or com file error!). idea?

to open excel can use this:

process.start("excel.exe"); // or real path of excel 

and have open worksheet, pass argument path of file:

process.start("excel.exe \"c:\my folder\book1.xlsx\""); 

Comments