Calling Excel file
I need to open an excel file from Business partner form for that i created a button on that button click put the code .
My code for creating excel is ,
FileStream fs = new FileStream(sPath, FileMode.OpenOrCreate, FileAccess.ReadWrite);
sPath is the file path.
I called the excel file using
ProcessStartInfo startInfo = new ProcessStartInfo(sPath);
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
It shows the message as "unable to read file". Please help me to solve this problem.