Skip to main content

Report Link Customizing Example

This example demonstrates how to use the Report Links of the TdxComponentPrinter object at runtime. You can customize report links of any type (not just TdxStringGridReportLink) of the TdxComponentPrinter object.

procedure TForm1.Button2Click(Sender: TObject);
begin
  // Sets the color and font for the report's data
  TdxStringGridReportLink(dxComponentPrinter1Link1).Color := clSilver;
  TdxStringGridReportLink(dxComponentPrinter1Link1).Font.Name := 'Arial';
  // Builds a report
 dxComponentPrinter1.RebuildReport(dxComponentPrinter1Link1);
  // Prints a report
 dxComponentPrinter1.PrintEx(pnAll, 1, True, dxComponentPrinter1Link1);
end;