Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TCustomdxListBoxReportLinkControl.PaintItemsGraphics Property

Determines whether graphics associated with items are printed.

#Declaration

Delphi
property PaintItemsGraphics: Boolean read; write; default False;

#Property Value

Type Default
Boolean False

#Remarks

You can associate images with list box items via the Objects property of items (as list box items are of type TStrings). If images are associated with items, then you may wish to print these images in your report. Set the PaintItemsGraphics property to True to print images associated with items:

Delphi
var
  pic : TBitmap;
{ . . . }
begin
{ . . .}
  // associates an image with the first list box item
  pic := TBitmap.Create;
{ . . . }
  pic.LoadFromFile('c:\Chemic.bmp');
  ListBox1.Items.Objects[0] := pic;
{ . . . }
  // sets the PaintItemsGraphics property to True
 TdxListBoxReportLink( dxComponentPrinter1Link1).PaintItemsGraphics := True;
  // builds a report and
  // calls Preview to show the PaintItemsGraohics effect
  dxComponentPrinter1.RebuildReport;
  dxComponentPrinter1.Preview(False, dxComponentPrinter1Link1);
{ . . . }
pic.Free;
end

The default value of the PaintItemsGraphics property is False.

See Also