Message-ID: <1700670230.8283.1711639858976.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8282_922240147.1711639858976" ------=_Part_8282_922240147.1711639858976 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html WordApplication.Open(String)

WordApplication.Open(String)

Description=20

Opens and returns an existing Document= from disk.

=20
C#
=20
 public Document Open(System.String fileName)
=20
=20
vb.net
=20
Public Function Open(ByVal fileName As String) As Document
=20
=20

Parameters

=20
fileName
The complete= path and filename of the document to open from disk.=20

Returns

The document t= hat is opened from disk.=20

Exceptions

=20
System.Exception Thrown if an error occurs while opening the document.=20

Remarks

Though the=20 WordTemplate obj= ect currently supports Office Open XML (Word 2007) format files,=20 WordApplicat= ion.Open() does not yet support them.=20

Examples

=20
C#
=20
Document doc =3D app.Open("@C:\sample.doc");
=20
=20
vb.net
=20
Dim doc As Document =3D app.Open("C:\sample.doc")
=20
------=_Part_8282_922240147.1711639858976--