Skip to main content

IdxPrinting.CanBuildReport(TComponent) Method

Identifies if the report link can build a report for the specified control.

Declaration

function CanBuildReport(AComponent: TComponent): Boolean;

Parameters

Name Type
AComponent TComponent

Returns

Type
Boolean

Remarks

This function supports the internal infrastructure and is not intended to be used directly from your code. Normally, CanBuildReport is called internally by the report link repository‘s CanBuildReport function to indicate that the specified DevExpress VCL control’s content can be printed.

This function returns True if the following conditions are met:

  • The report link is associated with a component printer (i.e., if the report link’s ComponentPrinter property is not set to nil);

  • A DevExpress VCL component passed as the AComponent parameter is the component associated with the report link (i.e., its Component property and the AComponent parameter have the same value).

Otherwise, the CanBuildReport function returns False.

See Also