回复 1楼menghuanyunxia的帖子
您好,
请问您是希望实现导出 Color 值 和 Caption 信息吗?
我这边测试结果和您的描述有所不同,设置代码:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.ColorPickerCellType cp = new FarPoint.Win.Spread.CellType.ColorPickerCellType();
- cp.AllowFullOpen = true;
- cp.AnyColor = false;
- cp.Caption = "ColorPicker";
- cp.CustomColors = new int[] { 255, 190, 50 };
- cp.FullOpen = true;
- cp.UnknownText = "Custom Color";
- cp.UnknownTextStyle = FarPoint.Win.Spread.CellType.UnknownTextStyle.Custom;
- cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText;
- fpSpread1.ActiveSheet.Columns[0].CellType = cp;
- }
- private void exportToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.fpSpread1.SaveExcel("test.xls");
- }
复制代码
导出后的效果:
目前是 Caption 信息消失,但是 Color 值还在,如图:
|