i trying open excel project in solution winform application. please note:
- winform starting project.
- i can add winform reference in excel can not add excel reference in winform project.
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
Post a Comment