条码控件类型为GrapeCity.ActiveReports.PageReportModel.CustomReportItem。我该转成什么控件类型予以赋值?
如:
if (item.GetType() == typeof(GrapeCity.ActiveReports.PageReportModel.TextBox))
{
GrapeCity.ActiveReports.PageReportModel.TextBox text = new GrapeCity.ActiveReports.PageReportModel.TextBox();
text = (GrapeCity.ActiveReports.PageReportModel.TextBox)item;
text.Value = stextValue;
}
if (item.GetType() == typeof(GrapeCity.ActiveReports.PageReportModel.CustomReportItem))
{
//条码控件此处该是转什么类型?
} |
|