Message-ID: <1336127392.10337.1711722142775.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10336_1473431907.1711722142775" ------=_Part_10336_1473431907.1711722142775 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Table of Contents | =20
---|
=20
| =20
WordApplication is the main=
class for pure code-based Word document generation (for information about =
template-based workbook generation, see WordTemplate ). This class is an engine used to open, create, and wr=
ite (save to disk or stream to a browser) Word documents. A single instance=
of WordApplication
can generate multiple documents.
public sealed class WordApplication=20
Public NotInheritable Class WordApplication=20
A generated document is represented by the Document class.
=20The WordApplication
class is in the SoftArtisans.Offi=
ceWriter.WordWriter
namespace. The class can can be referenced as Page
directive, inclu=
de:
If you are coding in the code-behind page (.aspx.cs or .aspx.vb), includ=
e a using
or Imports
statement at the top of the =
code behind page:
using SoftArtisans.OfficeWriter.WordWriter;=20
Imports SoftArtisans.OfficeWriter.WordWriter=20
//--- Create an instance of the WordApplication class WordApplication oWordApplication =3D new WordApplication();=20
'--- Create an instance of the WordApplication class Dim oWordApplication As New WordApplication()=20
Name | =20
Description | =20
---|---|
=20 | Returns a boolean that represents whether or not=
WordWriter will write all text using unicode. A value of false can result in smaller file sizes but text that is not part of cp1252 (Win=
dows-1252) will be unreadable. This is set to true by default.=
It is recommended that you should set this to false if it is =
known that only characters supported by Windows-1252 are in the document, e=
specially when creating large documents. | =20
=20 | Sets or returns the license key used for this in= stance of WordApplication. Thi= s property is mainly used for debugging purposes. For managing your license= keys, please use the License Key Manager that is installed with OfficeWrit= er. | =20
=20 | Sets or returns a boolean that represents whethe= r or not WordWriter will preserve feature of an existing document that it d= oes not natively support. Setting this to false can result in smaller file = sizes, but features that are not natively supported by WordWriter will be s= tripped out. This is set to true by default. | =20
=20 | Returns the exact version of WordWriter. The for= mat of the version string returned is: | =20
Name | =20
Description | =20
---|---|
=20 | Creates and returns a new Document based on the Normal style. | =20
=20 | Opens and returns an existing Document from disk. | =20
=20 | Opens and returns an existing Document from the specified Stream. | =20
=20 | Takes a Wo= rdTemplate object representing a template Word file, and opens the file= as a Document object. | =20
=20 | Writes a Docum= ent to a file. | =20
=20 | Writes a Docum= ent to a stream in the form of a Microsoft Word document. | =20
= =20 | Streams a Docu= ment to an HttpResponse with the option of having it open in the user's= web browser. The fileName specified will appear in the browser window. In = addition, the content-type to use when streaming the file is specified. | =20
Save(Document, System.Web.HttpResponse, String, Boolean, String)<= /p> | =20
Streams a Docu= ment to an HttpResponse with the option of having it open in the user's= web browser. The fileName specified will appear in the browser window. In = addition, the content-type to use when streaming the file is specified. | =20
=20 | Creates a new WordApplication object | =20
Overload | =20
Description | =20
---|---|
=20 | Opens and returns an existing Document from a SharePoint Document Library. | =20
=20 | Opens and returns an existing Document from a SharePoint List Item. | =20
Save(Document, Microsoft.SharePoint.SPDocumentLibrary, String, Boolea= n) | =20
Writes a Docum= ent to a file and saves it to a SharePoint Document Library. | =20
= =20 | Writes a Docum= ent to a file and saves it to a SharePoint List Item. | =20