Skip to main content

TBasedxReportLink.Component Property

Specifies the target source control.

Declaration

property Component: TComponent read; write;

Property Value

Type Description
TComponent

The content source control.

Remarks

Use the Component property to associate the report link with a compatible control.

The following code example creates a report link for an existing PDF Viewer control, prints its content without user interaction, and deletes the created report link:

uses
  dxPSdxPDFViewerLnk;  // Declares the TdxPDFViewerReportLink class
// ...
var
  AReportLink: TBasedxReportLink;
begin
  // Creates a PDF Viewer control report link
  AReportLink := dxComponentPrinter1.AddEmptyLinkEx(TdxPDFViewerReportLink, dxPDFViewer1);
  AReportLink.Component := dxPDFViewer1;  // Associates the created report link with the source control
  try
    AReportLink.Print(False);  // Prints chart content without user interaction
  finally
    dxComponentPrinter1.DeleteLink(AReportLink.Index); // Deletes the report link after export
  end;
end;
See Also