Dev列绑定ComboBox
需求:
给定List集合数据,两列,一列显示指定的名称,一列用ComboBox选择条件进行输出。
注意要点:
两列都要绑定List集合的类属性,ComboBox如果不绑定FieldName的话,ComboBox选择后也不显示。
写入word特殊字符,用aspose.word:
DocumentBuilder builder = new DocumentBuilder(m_WordDoc);//获取buider,
builder.MoveToMergeField("BGDJ");//书签位置
builder.Font.Name = "Wingdings 2";//设置字体
builder.Write(char.ConvertFromUtf32(82));//□在Wingdings 2字体库中的顺序是163,所以这里写163。
builder.MoveToMergeField("SCDJ");//书签位置
builder.Font.Name = "Wingdings 2";//设置字体
builder.Write(char.ConvertFromUtf32(82));//□在Wingdings 2字体库中的顺序是163,所以这里写163。