Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Calling Excel file

Hi Friends,

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.


Former Member
Not what you were looking for? View more on this topic or Ask a question