G
Guest
I am trying many ways to create and save data to an Excel file, but all I got
is the following error message. (The code behind is in C#.net)
System.UnauthorizedAccessException
Here is my codes:
71: // Start a new workbook in Excel.
72: m_objExcel = new Excel.Application();
73: m_objBooks = (Excel.Workbooks)m_objExcel.Workbooks;
74: m_objBook = (Excel._Workbook)(m_objBooks.Add(m_objOpt));
is the following error message. (The code behind is in C#.net)
System.UnauthorizedAccessException
Here is my codes:
71: // Start a new workbook in Excel.
72: m_objExcel = new Excel.Application();
73: m_objBooks = (Excel.Workbooks)m_objExcel.Workbooks;
74: m_objBook = (Excel._Workbook)(m_objBooks.Add(m_objOpt));