Posted 26 April 2022, 6:20 pm EST
Hello.
C1.WPF.Report.Ja 6.0.20221.218
I want to use the FieldName enclosed in {} in IC1FlexReportRecordset;
Can I use “{}”?
https://devlog.grapecity.co.jp/c1-flexreport-design/
In this code
_fields = new Dictionary<string, Type>()
{
{ "ID", typeof(int) },
{ "Name", typeof(string) },
{ "RegDate", typeof(DateTime) },
};
so, I have ported to WPF like this
1 _fields.Add("FieldName", typeof(string));
2 _fields.Add("{FieldName}", typeof(string));
1 is OK. GetFieldValue method is called.
But “{FieldName}” is not recognized as a Key. GetFieldValue method is not called.
in the .flxr file,
<TextField>
<Name />
<Section>Detail</Section>
(.....)
<Text>
<Expression>FieldName</Expression>
</Text>
</TextField>
<TextField>
<Name />
<Section>Detail</Section>
(.....)
<Text>
<Expression>{FieldName}</Expression>
</Text>
</TextField>