[]
Adds a file attachment to the current page.
public void AddAttachment(string file, RectangleF rc)
Type | Name | Description |
---|---|---|
string | file | The file that will be included as an attachment. |
RectangleF | rc | Area of the page that will contain the attachment (in points measured from the top-left corner of the page). |
Adds a file attachment to the current page.
public void AddAttachment(string file, RectangleF rc, AttachmentIcon icon, Color iconColor)
Type | Name | Description |
---|---|---|
string | file | The file that will be included as an attachment. |
RectangleF | rc | Area of the page that will contain the attachment (in points measured from the top-left corner of the page). |
AttachmentIcon | icon | AttachmentIcon value that determines the appearance of the attachment icon. |
Color | iconColor | Color of the attachment icon. |
Adds a file attachment to the document.
public void AddAttachment(string file, RectangleF rc, int page, AttachmentIcon icon, Color iconColor)
Type | Name | Description |
---|---|---|
string | file | The file that will be included as an attachment. |
RectangleF | rc | Area of the page that will contain the attachment (in points measured from the top-left corner of the page). |
int | page | Index of the page that contains the attachment. |
AttachmentIcon | icon | AttachmentIcon value that determines the appearance of the attachment icon. |
Color | iconColor | The color of the attachment icon. |
When the user moves the mouse over an area of the page that contains an attachment, the mouse pointer and tool tip change to indicate that the user can retrieve the attachment. The user can right-click the attachment area to open or save the attachment.
Adds a stream-based attachment to the current page.
public void AddAttachment(string attachmentName, byte[] attachmentData, RectangleF rc, AttachmentIcon icon, Color iconColor)
Type | Name | Description |
---|---|---|
string | attachmentName | Name to be shown next to the attachment. |
byte[] | attachmentData | Byte array containing the attachment data. |
RectangleF | rc | Area of the page that will contain the attachment (in points measured from the top-left corner of the page). |
AttachmentIcon | icon | AttachmentIcon value that determines the appearance of the attachment icon. |
Color | iconColor | The color of the attachment icon. |
This override allows you to add attachments containing data that does not come from files. For example, the data could come from blobs or streams stored in a database.
Adds a stream-based attachment to the document.
public void AddAttachment(string attachmentName, byte[] attachmentData, RectangleF rc, int page, AttachmentIcon icon, Color iconColor)
Type | Name | Description |
---|---|---|
string | attachmentName | Name to be shown next to the attachment. |
byte[] | attachmentData | Byte array containing the attachment data. |
RectangleF | rc | Area of the page that will contain the attachment (in points measured from the top-left corner of the page). |
int | page | Index of the page that contains the attachment. |
AttachmentIcon | icon | AttachmentIcon value that determines the appearance of the attachment icon. |
Color | iconColor | The color of the attachment icon. |
This override allows you to add attachments containing data that does not come from files. For example, the data could come from blobs or streams stored in a database.