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

TBasedxReportLink.Component Property

Specifies the target source control.

#Declaration

Delphi
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;  // This unit 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