...
Description |
---|
Excerpt |
---|
Sets or returns the generated spreadsheet's |
...
MIME |
...
content |
...
type. |
...
Signature | ||||
---|---|---|---|---|
| ||||
public System.String ContentType{ get; set; }
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Property ContentType() As String
{signature}
{remarks}
In most |
Remarks |
---|
In most browsers, Microsoft Excel files are mapped to the MIME type "application/vnd.ms \-excel" and [|ExcelTemplate.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 {{
to the appropriate MIME content type. 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: #
property. {remarks} {example}{code:csharp|title=C#} |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|