ActiveReports 9
AddImage(Image,ImageInfo,Color,Color,Int32,Int16,Int32,Int16,Int32,Int16,Int32,Int16,String) Method

This is an image object that represents the image to be placed on the sheet.
SpreadBuilder.Imaging.ImageInfo.
A System.Drawing.Color for the border lines on the image.
A System.Drawing.Color for the background of the image.
The column containing the upper-left corner of the object's bounding rectangle.
The 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.
The row containing the upper-left corner of the object's bounding rectangle.
The 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.
The column containing the lower-right corner of the object's bounding rectangle.
The 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.

The row containing the lower-right corner of the object's bounding rectangle.
The 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.
To add a clickable hyperlink to the image, specify the URL here. Otherwise use an empty string.
Adds the specified image (currently stored as PNG format) to this sheet with the specified location, and settings.
Syntax
'Declaration
 
Public Overloads Sub AddImage( _
   ByVal img As Image, _
   ByVal imageOptions As ImageInfo, _
   ByVal lineColor As Color, _
   ByVal backColor As Color, _
   ByVal columnLeft As System.Integer, _
   ByVal dxL As System.Short, _
   ByVal rowTop As System.Integer, _
   ByVal dyT As System.Short, _
   ByVal columnRight As System.Integer, _
   ByVal dxR As System.Short, _
   ByVal rowBottom As System.Integer, _
   ByVal dyB As System.Short, _
   ByVal hyperlink As System.String _
) 
public void AddImage( 
   Image img,
   ImageInfo imageOptions,
   Color lineColor,
   Color backColor,
   System.int columnLeft,
   System.short dxL,
   System.int rowTop,
   System.short dyT,
   System.int columnRight,
   System.short dxR,
   System.int rowBottom,
   System.short dyB,
   System.string hyperlink
)

Parameters

img
This is an image object that represents the image to be placed on the sheet.
imageOptions
SpreadBuilder.Imaging.ImageInfo.
lineColor
A System.Drawing.Color for the border lines on the image.
backColor
A System.Drawing.Color for the background of the image.
columnLeft
The column containing the upper-left corner of the object's bounding rectangle.
dxL
The 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
The row containing the upper-left corner of the object's bounding rectangle.
dyT
The 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
The column containing the lower-right corner of the object's bounding rectangle.
dxR
The 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

The row containing the lower-right corner of the object's bounding rectangle.
dyB
The 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
To add a clickable hyperlink to the image, specify the URL here. Otherwise use an empty string.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DDSheet Class
DDSheet Members
Overload List

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum