Message-ID: <1288269458.8907.1711667499655.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8906_435655383.1711667499655" ------=_Part_8906_435655383.1711667499655 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html ExcelTemplate.ContentType

ExcelTemplate.ContentType

Description

= =20

Sets or returns the generated spreadsheet's MIME content type.

=20
C#
=20
 public System.String ContentType{ get; set; }
=20
=20
vb.net
=20
Public Property ContentType() As String
=20
=20

Remarks

=20

In most browsers, Microsoft Excel files are mapped to the MIME type &quo= t;application/vnd.ms-excel" and ContentType is set to this value by defa= ult. However, some browsers map Excel files to a different MIME content typ= e, and the browser will not open a file of type "application/vnd.ms-Ex= cel." In this case, set ContentType to the appropriate MI= ME content type.

=20

In Internet Explorer, to find out what MIME content type maps to Excel f= iles:

=20
    =20
  1. Open the Start menu and select Run.
  2. =20
  3. Entire regedit to open the Registry Editor.
  4. =20
  5. Open HKEY_CLASSES_ROOT\MIME\Database\Content Type. This folder contains= a list of MIME content type folders. If you select a folder, you will see = the extensions to which the type maps in the right frame.
  6. =20
=20

In Netscape Navigator, to find out what MIME content type maps to Excel = files:

=20
    =20
  1. In the browser window, open the Edit menu and select Preferences...=20
  2. In the Category window select Applications.
  3. =20
  4. In the Description window, select an application to display its MIME co= ntent type.
  5. =20
=20

ContentType is a Read/Write property.

= =20

Examples

=20
C#
=20

          xlt.ContentType =3D "application/unknown";
        
=20
=20
vb.net
=20

          xlt.ContentType =3D "application/unknown"
        
=20
------=_Part_8906_435655383.1711667499655--