TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
maayah2000
NA
11
0
error in the C# code
Dec 6 2004 10:43 AM
hi I wrote this code to open excel sheet using C#.net but ther is an error in the open function can you tell me what is it // Excel object references. private Excel.Application m_objExcel = null; private Excel.Workbooks m_objBooks = null; private Excel._Workbook m_objBook = null; private Excel.Sheets m_objSheets = null; private Excel._Worksheet m_objSheet = null; private object m_objOpt = System.Reflection.Missing.Value; //object definetion m_objExcel = new Excel.Application(); m_objBooks = (Excel.Workbooks)m_objExcel.Workbooks; m_objBook = (Excel._Workbook)(m_objBooks.Add(m_objOpt)); m_objExcel.Visible = true; m_objBook.OpenLinks("c:/test2.xls",m_objOpt,m_objOpt); thanks
Reply
Answers (
2
)
Problems with DateTime data type
fustrated college student