Skip to main content

TCustomdxListBoxReportLinkControl.PaintItemsGraphics Property

Determines whether graphics associated with items are printed.

Declaration

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:

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