Sets or returns the generated spreadsheet's MIME content type. |
public System.String ContentType{ get; set; } |
Public Property ContentType() As String |
In most browsers, Microsoft Excel files are mapped to the MIME type "application/vnd.ms-excel" and ContentType is set to this value by default. However, some browsers map Excel files to a different MIME content type, and the browser will not open a file of type "application/vnd.ms-Excel." In this case, set In Internet Explorer, to find out what MIME content type maps to Excel files:
In Netscape Navigator, to find out what MIME content type maps to Excel files:
|
|