This documentation is archived and is not being maintained.

Application.CreateReportControl Method

Office 2007
The CreateReportControl method creates a control on a specified open report. For more information, see the CreateControl method.


expression.CreateReportControl(ReportName, ControlType, Section, Parent, ColumnName, Left, Top, Width, Height)

expression   A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
ReportNameRequiredStringThe name of the open report on which you want to create the control.
ControlTypeRequiredAcControlTypeAn AcControlType constant that represents the type of control you want to create.
SectionOptionalAcSectionAn AcSection constant that identifying the section that will contain the new control.
ParentOptionalVariantA string expression identifying the name of the parent control of an attached control. For controls that have no parent control, use a zero-length string for this argument, or omit it.
ColumnNameOptionalVariant The name of the field to which the control will be bound, if it is to be a data-bound control.
Left, TopOptionalVariantThe coordinates for the upper-left corner of the control in twips.
Width, HeightOptionalVariantThe width and height of the control in twips.

Return Value