可以添加以下代码,在ClipboardPasting事件中来处理:
- bool CustomerPaste = true;
- private void fpSpread1_ClipboardPasting(object sender, FarPoint.Win.Spread.ClipboardPastingEventArgs e)
- {
- if (CustomerPaste)
- {
- e.Handled = true;
- CustomerPaste = false;
- fpSpread1.ActiveSheet.ClipboardPaste(FarPoint.Win.Spread.ClipboardPasteOptions.Values);
- }
- else
- {
- CustomerPaste = true;
- }
- }
复制代码 |