Click or drag to resize

ImageAddImageToPart Method

Adds a image file to a open XML part (not into document content)

Namespace:  SOWIDocument.Word
Assembly:  SOWIDocument.Word (in SOWIDocument.Word.dll) Version: 22.2.10.1 (22.2.10.450)
Syntax
private string AddImageToPart(
	string pImageFile,
	OpenXmlPart pPart = null
)

Parameters

pImageFile
Type: SystemString
Image file name
pPart (Optional)
Type: OpenXmlPart
A open XML part to store the image.

If parameter null then sets the MyDocument.MainDocumentPart

Return Value

Type: String
Relationship to image
See Also