Click here to Skip to main content
15,301,002 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I run VSTO solution is it possible to open excel from given path


Usually when we create vsto solution then default empty excel file get open and then we perform some operation on that but in my solution I want open file that is already I have created and placed in one directory or folder is this possible Using VSTO. and How

What I have tried:

I have created vsto solution I have added user control on it and on user control there is button and on that button click I want to perform operation on opened file but it is opeaning blank file
Posted
Updated 21-Mar-18 2:47am
v2

1 solution

Try something like this:

VB
this.Application.Workbooks.Open(@"full path to filename");
   
v2
Comments
paul_vin 21-Mar-18 9:02am
   
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900