I believe the standard MIME type for Excel files is application/vnd.ms-excel
.
Regarding the name of the document, you should set the following header in the response:
header('Content-Disposition: attachment; filename="name_of_excel_file.xls"');
More Related Contents:
- Save excel file multiple times with file names in another workbook.
- Is it possible to force Excel recognize UTF-8 CSV files automatically?
- How do I declare a global variable in VBA?
- How to pause for specific amount of time? (Excel/VBA)
- VBA code doesn’t run when cell is changed by a formula
- Easiest way to loop through a filtered list with VBA?
- Quicker way to get all unique values of a column in VBA?
- Excel date to Unix timestamp
- Parsing an ISO8601 date/time (including TimeZone) in Excel
- Getting the actual usedrange
- Excel Number Format: What is “[$-409]”?
- Delete a row in Excel VBA
- Two column lookup in table array using INDEX and MATCH
- Concatenate cell data into another data if values matches
- What charset does Microsoft Excel use when saving files?
- How can I run VBA code each time a cell gets its value changed by a formula?
- How to convert 32 bit VBA code into 64 bit VBA code
- Loop through each row of a range in Excel
- Outputting Excel rows to a series of text files
- How to create a range from two ranges in VBA?
- XML parse VBA excel (function trip, & MSXML2.DOMDocument)
- Creating a chart in Excel that ignores #N/A or blank cells
- Countif With Multiple OR Criteria
- Vlookup to copy color of a cell
- every possible combination of the contents of 2 columns in excel
- How to delete rows in Excel based on criteria using VBA?
- Macro to export MS Word tables to Excel sheets
- excel vlookup with multiple results
- How to protect Excel workbook using VBA?
- Unique Rank value for a subgroup within a group