void IReportEntity.SetPersistanceField(Dictionary <string, object> Variables) { TableDef td = MetaData.GetTableDef(GetType()); foreach (KeyValuePair <string, object> kvp in Variables) { FieldDef fld = td.GetFieldDef(kvp.Key); if (fld != null) { object TmpVal; switch (fld.DataType) { case DataType.Integer: TmpVal = Convert.ToInt32(kvp.Value); break; default: TmpVal = kvp.Value; break; } try { fld.SetLoadValue(this, TmpVal); } catch { } } } }