Version

Quick Image

The Quick Image element lets you add images to most layout elements with little or no effort. To quickly add an image to your report, you simply need to call the AddQuickImage method of whichever layout element you need to insert an image in. This method has only one parameter, an Infragistics.Documents.Reports.Graphics.Image . You can either pass in a previously created image, or you can instantiate a new image. See Image for more information.

The following code creates a Quick Image element by calling the AddQuickImage method off the ISection interface and passing in a new image. The new image will use the second overload, using a string to identify the path of the image. This topic assumes that you have a Report element defined with at least one Section element added to it. See Report and Section for more information.

In Visual Basic:

section1.AddQuickImage(New Image(Application.StartupPath + "..\Coffee Bean.bmp"))

In C#:

section1.AddQuickImage(new Image(Application.StartupPath + @"..\Coffee Bean.bmp"));