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

Adding Images

To insert an image into a section of your document, use one of the = following methods. Each method inserts an image at the beginning or end of = an Element. An Element object represents an editable region in a document, = such as a section or paragraph. The document itself is an Element.

 

Insert an image specified by file name at the beginning of the element.<= /p>

=20
InlineImage Element.InsertImageBefore(String fileName)
=20

 

Insert an image specified by file name at the end of the element.

=20
InlineImage Element.InsertImageAfter(String fileName)
=20

 

Insert an image contained in the specified stream at the beginning of th= e element.

=20
InlineImage Element.InsertImageBefore(System.IO.Stream stream)=20

 

Inserts the image contained in the specified stream at the end of the el= ement.

=20
InlineImage Element.InsertImageAfter(System.IO.Stream stream)=20

 

Before adding an image to your file, you must create a content region in= which to insert the image. Each editable region in a Word file is represen= ted by an Element object, or an object that extends Element, such as a Docu= ment

=20
object.WordApplication wwapp =3D new WordApplication();
Document doc =3D wwapp.Create();
=20

To insert an image, use one of the methods listed at the beginning of th= is section, for example:

=20
InlineImage img =3D doc.InsertImageAfter("C:\\sample.jpg&qu=
ot;);
=20

An inserted image is returned as an InlineImage object. The InlineImage = class extends Element.

------=_Part_8506_339686553.1711647949533--