在复制SheetView时,建议使用以下方法:
- public FarPoint.Win.Spread.SheetView CopySheet(FarPoint.Win.Spread.SheetView sheet)
- {
- FarPoint.Win.Spread.SheetView newSheet = null;
- if (sheet != null)
- {
- newSheet = FarPoint.Win.Serializer.LoadObjectXml(typeof(SheetView), FarPoint.Win.Serializer.GetObjectXml(sheet, "CopySheet"), "CopySheet") as SheetView;
- newSheet.SheetName = "NewSheet";
- }
- return newSheet;
- }
复制代码 |