Message-ID: <596508589.9911.1711706543807.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9910_523522164.1711706543807" ------=_Part_9910_523522164.1711706543807 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Opens an existing Excel spreadsheet.
=20public virtual Workbook Open(System.String fileName, System.String decrypt= Password)=20
Public Overridable Function Open(ByVal fileName As String, ByVal decryptPas= sword As String) As Workbook=20
decryptPassword
is not the password that can decrypt the workb=
ook.=20
ExcelWriter supports Excel's OOXML (Excel 2007 or later) and BIFF8 (Exce= l 97 or later) format only. Do not use this method to open BIFF7 (Excel 95)= files.
=20Note that ExcelWriter will not automatically re-encrypt a workbook that =
was opened with this method. If you want to ensure that your workbook is en=
crypted when saved, set the EncryptPassword
property.
ExcelApplication xla =3D new ExcelApplication(); Workbook wb =3D xla.Open(@"C:\Reports\Report.xlsx", &qu= ot;MyPassword");=20
Dim xla As New ExcelApplication() Dim wb As Workbook =3D xla.Open("C:\Reports\Report.xlsx"= ;, "MyPassword")=20