elwin 你好,
可以在序列化之后,使用 StreamReader 读取 xml 文件,赋值到 string 中, 最后添加到数据库。
- FarPoint.Web.Spread.CheckBoxCellType ck = new FarPoint.Web.Spread.CheckBoxCellType();
- ck.Text = "True/False";
- ck.TextAlign = TextAlign.Left;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = ck;
- FpSpread1.EnableClientScript = false;
- this.FpSpread1.Save(@"E:\1.xml",false);
- System.IO.StreamReader sr = new System.IO.StreamReader(@"E:\1.xml");
- string xml = sr.ReadToEnd();
复制代码 |