Message-ID: <1433751316.10173.1711715390693.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10172_1430633704.1711715390693" ------=_Part_10172_1430633704.1711715390693 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Insert an image specified by file name at the beginning of the element.<= /p>
InlineImage Element.InsertImageBefore(String fileName)=20
Insert an image specified by file name at the end of the element.
InlineImage Element.InsertImageAfter(String fileName)=20
Insert an image contained in the specified stream at the beginning of th= e element.
InlineImage Element.InsertImageBefore(System.IO.Stream stream)= pre>=20
Inserts the image contained in the specified stream at the end of the el= ement.
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
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:
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.