ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.SpreadBuilder Assembly / GrapeCity.SpreadBuilder Namespace / DDSheet Class / AddImage Method
This is an image object that represents the image to be placed on the sheet.
Column containing the upper-left corner of the object's bounding rectangle.
X (horizontal) position of the upper-left corner of the object's bounding rectangle, relative to the left side of the underlying cell (specified in colL), expressed as 1/1024th of the cell's width.
Row containing the upper-left corner of the object's bounding rectangle.
Y (vertical) position of the upper-left corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell's height.
Column containing the lower-right corner of the object's bounding rectangle.
X (horizontal) position of the lower-right corner of the object's bounding rectangle, relative to the left side of the underlying cell, expressed as 1/1024th of the cell's width.
Row containing the lower-right corner of the object's bounding rectangle.
Y (vertical) position of the lower-right corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell's height.
If you want the image to have a clickable hyperlink specify the URL here. Otherwide use an empty string.

In This Topic
    AddImage Method
    In This Topic
    Adds the specified image (currently stored as PNG format) to this sheet with the specified location, and settings.
    Syntax
    'Declaration
     
    Public Sub AddImage( _
       ByVal imageData() As Byte, _
       ByVal imageOptions As ImageInfo, _
       ByVal lineColor As Color, _
       ByVal backColor As Color, _
       ByVal columnLeft As Integer, _
       ByVal dxL As Short, _
       ByVal rowTop As Integer, _
       ByVal dyT As Short, _
       ByVal columnRight As Integer, _
       ByVal dxR As Short, _
       ByVal rowBottom As Integer, _
       ByVal dyB As Short, _
       ByVal hyperlink As String _
    ) 
    public void AddImage( 
       byte[] imageData,
       ImageInfo imageOptions,
       Color lineColor,
       Color backColor,
       int columnLeft,
       short dxL,
       int rowTop,
       short dyT,
       int columnRight,
       short dxR,
       int rowBottom,
       short dyB,
       string hyperlink
    )

    Parameters

    imageData
    This is an image object that represents the image to be placed on the sheet.
    imageOptions
    lineColor
    backColor
    columnLeft
    Column containing the upper-left corner of the object's bounding rectangle.
    dxL
    X (horizontal) position of the upper-left corner of the object's bounding rectangle, relative to the left side of the underlying cell (specified in colL), expressed as 1/1024th of the cell's width.
    rowTop
    Row containing the upper-left corner of the object's bounding rectangle.
    dyT
    Y (vertical) position of the upper-left corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell's height.
    columnRight
    Column containing the lower-right corner of the object's bounding rectangle.
    dxR
    X (horizontal) position of the lower-right corner of the object's bounding rectangle, relative to the left side of the underlying cell, expressed as 1/1024th of the cell's width.
    rowBottom
    Row containing the lower-right corner of the object's bounding rectangle.
    dyB
    Y (vertical) position of the lower-right corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell's height.
    hyperlink
    If you want the image to have a clickable hyperlink specify the URL here. Otherwide use an empty string.
    See Also