New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

Change default file type from xml to .xls for Save As function with programmatically generated excel sheet

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

Change default file type from xml to .xls for Save As function with programmatically generated excel sheet

Postby surbhi21sept » Mon Apr 11, 2016 12:59 pm

I have an mvc page where users can download an excel document. On Server side, i am converting the xml data to byte and fetch it as xls ,the logic reads the file, and changes its file extension to .xls . The problem is that the default file type is still XML files, when users click SAVE As in MS Excel or Kingsoft SpreadSheet menu.I want deafult file ext. as Microsoft 97/2000/xp/2003 Workbook(.xls).How to do that.
  • 0

surbhi21sept
Rookie
 
Posts: 1
Joined: Apr 11, 2016
Reputation: 0
Excel Version: 2007

Return to General Excel Questions

Who is online

Users browsing this forum: No registered users and 46 guests