Aspose::Words::MailMerging::ImageFieldMergingArgs class
Contents
[
Hide
]ImageFieldMergingArgs class
Provides data for the ImageFieldMerging() event. To learn more, visit the Mail Merge and Reporting documentation article.
class ImageFieldMergingArgs : public FieldMergingArgsBase
Methods
| Method | Description |
|---|---|
| get_Image() const | Specifies the image that the mail merge engine must insert into the document. |
| get_ImageFileName() const | Sets the file name of the image that the mail merge engine must insert into the document. |
| get_ImageHeight() const | Specifies the image height for the image to insert into the document. |
| get_ImageStream() const | Specifies the stream for the mail merge engine to read an image from. |
| get_ImageWidth() const | Specifies the image width for the image to insert into the document. |
| get_Shape() const | Specifies the shape that the mail merge engine must insert into the document. |
| set_Image(const System::SharedPtr<System::Drawing::Image> &) | Specifies the image that the mail merge engine must insert into the document. |
| set_ImageFileName(const System::String &) | Sets the file name of the image that the mail merge engine must insert into the document. |
| set_ImageHeight(const System::SharedPtr<Aspose::Words::Fields::MergeFieldImageDimension> &) | Specifies the image height for the image to insert into the document. |
| set_ImageStream(const System::SharedPtr<System::IO::Stream> &) | Specifies the stream for the mail merge engine to read an image from. |
| set_ImageStream(std::basic_istream<CharType, Traits> &) | Specifies the stream for the mail merge engine to read an image from. |
| set_ImageWidth(const System::SharedPtr<Aspose::Words::Fields::MergeFieldImageDimension> &) | Specifies the image width for the image to insert into the document. |
| set_Shape(const System::SharedPtr<Aspose::Words::Drawing::Shape> &) | Specifies the shape that the mail merge engine must insert into the document. |
| get_Document() const | Returns the Document object for which the mail merge is performed. |
| get_DocumentFieldName() const | Gets the name of the merge field as specified in the document. |
| get_Field() const | Gets the object that represents the current merge field. |
| get_FieldName() const | Gets the name of the merge field in the data source. |
| get_FieldValue() const | Gets or sets the value of the field from the data source. |
| get_RecordIndex() const | Gets the zero based index of the record that is being merged. |
| get_TableName() const | Gets the name of the data table for the current merge operation or empty string if the name is not available. |
| set_FieldValue(const System::SharedPtr<System::Object> &) | Sets the value of the field from the data source. |
Remarks
This event occurs during mail merge when an image mail merge field is encountered in the document. You can respond to this event to return a file name, stream, or an Image object to the mail merge engine so it is inserted into the document.
There are three properties available ImageFileName, ImageStream and Image to specify where the image must be taken from. Set only one of these properties.
To insert an image mail merge field into a document in Word, select Insert/Field command, then select MergeField and type Image:MyFieldName.
See Also
- Class FieldMergingArgsBase
- Namespace Aspose::Words::MailMerging
- Library Aspose.Words for C++