Skip to main content

TCustomdxComponentPrinter.FindLinkByComponent(TComponent,Boolean) Method

Returns the report link by the assigned component.

Declaration

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

Parameters

Name Type
Value TComponent
ACanCreate Boolean

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