Skip to main content

ImageBrick.HtmlImageUrl Property

Gets or sets the path to the image to display in the ImageBrick.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v23.1.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design


public string HtmlImageUrl { get; set; }

Property Value

Type Default Description
String null

A String which represents the path to an image.


Use the HtmlImageUrl property to specify the URL of the image to display in the ImageBrick. It supports both absolute and relative paths. A relative path may be related to the Web site or to a given page. In the second case, the path to the image must start with the “~” symbol. Setting a relative path makes it easier to move the entire application to another directory on the server without having to update the code. An absolute URL provides the complete path, so moving the application to another directory requires a code update.

If you want an image to be saved within a report, use the ImageBrick.ImageSource property instead.


HTML export uses this property to produce an image Url. So, in an HTML exported document, the image is obtained from the path specified by the HtmlImageUrl. Other export types and the Preview form include the image specified by the ImageBrick.ImageSource property.

See Also