public void Initialize(InitializationContext context) { context.ExprHostBuilder.ActionStart(); if (this.m_hyperLinkURL != null) { this.m_hyperLinkURL.Initialize("Hyperlink", context); context.ExprHostBuilder.ActionHyperlink(this.m_hyperLinkURL); } if (this.m_drillthroughReportName != null) { this.m_drillthroughReportName.Initialize("DrillthroughReportName", context); context.ExprHostBuilder.ActionDrillThroughReportName(this.m_drillthroughReportName); } if (this.m_drillthroughParameters != null) { for (int i = 0; i < this.m_drillthroughParameters.Count; i++) { ParameterValue parameterValue = this.m_drillthroughParameters[i]; context.ExprHostBuilder.ActionDrillThroughParameterStart(); parameterValue.Initialize(context, false); parameterValue.ExprHostID = context.ExprHostBuilder.ActionDrillThroughParameterEnd(); } } if (this.m_drillthroughBookmarkLink != null) { this.m_drillthroughBookmarkLink.Initialize("BookmarkLink", context); context.ExprHostBuilder.ActionDrillThroughBookmarkLink(this.m_drillthroughBookmarkLink); } if (this.m_bookmarkLink != null) { this.m_bookmarkLink.Initialize("BookmarkLink", context); context.ExprHostBuilder.ActionBookmarkLink(this.m_bookmarkLink); } if (this.m_label != null) { this.m_label.Initialize("Label", context); context.ExprHostBuilder.GenericLabel(this.m_label); } this.m_exprHostID = context.ExprHostBuilder.ActionEnd(); }
public override bool Initialize(InitializationContext context) { context.ObjectType = this.ObjectType; context.ObjectName = base.m_name; this.m_subReportScope = context.GetCurrentScope(); if ((LocationFlags)0 < (context.Location & LocationFlags.InMatrixCellTopLevelItem)) { this.m_isMatrixCellScope = true; } if ((LocationFlags)0 < (context.Location & LocationFlags.InDetail)) { this.m_isDetailScope = true; context.SetDataSetDetailUserSortFilter(); } context.ExprHostBuilder.SubreportStart(base.m_name); base.Initialize(context); if (base.m_visibility != null) { base.m_visibility.Initialize(context, false, false); } if (this.m_parameters != null) { for (int i = 0; i < this.m_parameters.Count; i++) { ParameterValue parameterValue = this.m_parameters[i]; context.ExprHostBuilder.SubreportParameterStart(); parameterValue.Initialize(context, false); parameterValue.ExprHostID = context.ExprHostBuilder.SubreportParameterEnd(); } } if (this.m_noRows != null) { this.m_noRows.Initialize("NoRows", context); context.ExprHostBuilder.GenericNoRows(this.m_noRows); } base.ExprHostID = context.ExprHostBuilder.SubreportEnd(); return(false); }
public override bool Initialize(InitializationContext context) { context.ObjectType = this.ObjectType; context.ObjectName = base.m_name; context.ExprHostBuilder.ActiveXControlStart(base.m_name); base.Initialize(context); if (base.m_visibility != null) { base.m_visibility.Initialize(context, false, false); } if (this.m_parameters != null) { for (int i = 0; i < this.m_parameters.Count; i++) { ParameterValue parameterValue = this.m_parameters[i]; context.ExprHostBuilder.ActiveXControlParameterStart(); parameterValue.Initialize(context, false); parameterValue.ExprHostID = context.ExprHostBuilder.ActiveXControlParameterEnd(); } } base.ExprHostID = context.ExprHostBuilder.ActiveXControlEnd(); return(true); }
public void Initialize(InitializationContext context) { if (this.m_commandText != null) { this.m_commandText.Initialize("CommandText", context); context.ExprHostBuilder.DataSetQueryCommandText(this.m_commandText); } if (this.m_queryParameters != null) { ObjectType objectType = context.ObjectType; string objectName = context.ObjectName; context.ObjectType = ObjectType.QueryParameter; context.ExprHostBuilder.QueryParametersStart(); for (int i = 0; i < this.m_queryParameters.Count; i++) { ParameterValue parameterValue = this.m_queryParameters[i]; context.ObjectName = parameterValue.Name; parameterValue.Initialize(context, true); } context.ExprHostBuilder.QueryParametersEnd(); context.ObjectType = objectType; context.ObjectName = objectName; } }