好了,我查到了。通过剪贴板可以解决。
- '将表1内容通过剪贴板复制到表2--------------------------
- FpSpread1.ActiveSheet.AddSelection(0, 0, FpSpread1.ActiveSheet.RowCount, FpSpread1.ActiveSheet.ColumnCount)
- FpSpread1.ActiveSheet.ClipboardCopy(FarPoint.Win.Spread.ClipboardCopyOptions.Values)
- FpSpread2.ActiveSheet.AddSelection(0, 0, 1, 1)
- FpSpread2.ActiveSheet.ClipboardPaste(FarPoint.Win.Spread.ClipboardPasteOptions.Values)
- '将表1内容通过剪贴板复制到表2--------------------------
复制代码 |