复制SheetView,按照:http://blog.gcpowertools.com.cn/post/如何复制SheetView对象-.aspx: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; }-------------------------------------------------当其中某个单元格有背景时复制出错(出错提示在上传图片中):TextCellType cellType = new TextCellType();cellType.BackgroundImage = new Picture(Image.FromFile(@"c:\xx.jpg"), FarPoint.Win.RenderStyle.Stretch, System.Drawing.Color.Empty, 0, FarPoint.Win.HorizontalAlignment.Left, FarPoint.Win.VerticalAlignment.Top);
this.fpSpread_Sheet1.Cells[0,0].CellType = cellType;
|
-
出错提示
|