Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Saving Excel file with _Workbook.SaveAs method problem
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
spots Knight
7y
259
1
Reply
I have code to save a data table to an Excel file using the _Workbook.SaveAs method. When I open the resulting file it says the file type doesn't match and the name displayed at the top of the excel window instead of being the file name, just says Book1.xlsx.
The arguments of the method I'm using are
xlWorkBook.SaveAs(File, Excel.XlFileFormat.xlWorkbookDefault, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
Am I missing a setting so when I try to open the file, it automatically recognizes the file as the correct format?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to use Round method
About video uploading into server and then play that video.