我在页面上画了两个spread,从下面的spread2往上面的复制,没有出现问题,您看看我的代码里还少了什么
- fpSpread2.ActiveSheet.ColumnHeader.Cells[0, 0].Value = "A1";
- fpSpread2.ActiveSheet.ColumnHeader.Cells[0, 1].Value = "B2";
- fpSpread2.ActiveSheet.ColumnHeader.Cells[0, 2].Value = "C3";
- fpSpread2.ActiveSheet.ColumnHeader.Cells[0, 3].Value = "D4";
- fpSpread2.ActiveSheet.ColumnHeader.Cells[0, 4].Value = "E5";
- fpSpread2.ActiveSheet.Cells[4, 4].Value = "E5";
- fpSpread2.ActiveSheet.Cells[2, 2].Value = "C3";
- FarPoint.Win.Spread.InputMap inputmap1;
- inputmap1 = fpSpread2.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- inputmap1.Put(new FarPoint.Win.Spread.Keystroke(Keys.V, Keys.Control), FarPoint.Win.Spread.SpreadActions.ClipboardPasteAsString);
-
复制代码 |