TBasedxReportLink.Component Property
In This Article
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.
#Code Example: Associate a Source Control with the Report Link
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