Back to Devexpress

TCustomdxComponentPrinter.FindLinkByComponent(TComponent,Boolean) Method

vcl-dxpscore-dot-tcustomdxcomponentprinter-dot-findlinkbycomponent-x28-system-dot-classes-dot-tcomponent-system-dot-boolean-x29.md

latest1.5 KB
Original Source

TCustomdxComponentPrinter.FindLinkByComponent(TComponent,Boolean) Method

Returns the report link by the assigned component.

Declaration

delphi
function FindLinkByComponent(Value: TComponent; ACanCreate: Boolean = False): TBasedxReportLink;

Parameters

NameType
ValueTComponent
ACanCreateBoolean

Returns

Type
TBasedxReportLink

Remarks

Every ExpressPrinting System report link is used to print a given component and thus each report link is assigned to a component. To find a report link assigned to a specific component, call the FindLinkByComponent function.

Value specifies the component being printed.

ACanCreate determines whether a report link that corresponds to the specified component is automatically created via the AddLink function, if this report link cannot be found. Pass True as ACanCreate to create the report link.

The FindLinkByComponent function returns a report link that corresponds to the specified component, if found. Otherwise, nil.

See Also

TCustomdxComponentPrinter Class

TCustomdxComponentPrinter Members

dxPSCore Unit