本帖最后由 linyimin 于 2024-8-14 16:22 编辑
="编制人:"+(Parameters!编制人.Value).ToString()
ActiveReport 18 使用上面的配置字段显示,使用如下方式设置产生值,不显示,帮忙看一下是什么问题
private void GetParameterData(GrapeCity.ActiveReports.Core.Rendering.ReportParameters.ParameterCollection Pcol)
{
DataTable paramTable = new DataTable();
int bRet = m_rptData(paramTable, m_strReportName, "TitleDataSet", "TitleDataSet");
if (bRet == 1)
{
for (int i = 0; i < paramTable.Columns.Count; ++i)
{
string strColmn = paramTable.Columns.ColumnName;
object value = paramTable.Rows[0];
GrapeCity.ActiveReports.Core.Rendering.ReportParameters.Parameter ppm = GrapeCity.ActiveReports.Core.Rendering.ReportParameters.Parameter.Create(strColmn,
"",
ParameterType.String,
ParameterState.HasValidValue,
true,
false,
true,
false,
false,
false,
true,
OrderByCondition.Value,
OrderByDirection.Ascending);
ppm.CurrentValue = value;
Pcol.Add(ppm);
}
}
}
|