打印就是pringsheet(0)
FP的初始化代码:
//
// fpMain
//
this.fpMain.About = "2.5.2007.2005";
this.fpMain.AccessibleDescription = "fpMain, Sheet1";
this.fpMain.BackColor = System.Drawing.Color.White;
this.fpMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.fpMain.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.fpMain.HorizontalScrollBarPolicy = FarPoint.Win.Spread.ScrollBarPolicy.AsNeeded;
this.fpMain.Location = new System.Drawing.Point(3, 17);
this.fpMain.Name = "fpMain";
this.fpMain.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpMain_Sheet1});
this.fpMain.Size = new System.Drawing.Size(715, 235);
this.fpMain.TabIndex = 0;
tipAppearance1.BackColor = System.Drawing.SystemColors.Info;
tipAppearance1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
tipAppearance1.ForeColor = System.Drawing.SystemColors.InfoText;
this.fpMain.TextTipAppearance = tipAppearance1;
this.fpMain.VerticalScrollBarPolicy = FarPoint.Win.Spread.ScrollBarPolicy.AsNeeded;
this.fpMain.VisualStyles = FarPoint.Win.VisualStyles.Off;
this.fpMain.AutoSortingColumn += new FarPoint.Win.Spread.AutoSortingColumnEventHandler(this.fpMain_AutoSortingColumn);
this.fpMain.CellDoubleClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpMain_CellDoubleClick);
this.fpMain.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpMain_CellClick);
this.fpMain.ColumnWidthChanged += new FarPoint.Win.Spread.ColumnWidthChangedEventHandler(this.fpMain_ColumnWidthChanged);
//
// fpMain_Sheet1
//
this.fpMain_Sheet1.Reset();
this.fpMain_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpMain_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpMain_Sheet1.ColumnCount = 0;
this.fpMain_Sheet1.ColumnHeader.RowCount = 0;
this.fpMain_Sheet1.RowCount = 0;
this.fpMain_Sheet1.RowHeader.ColumnCount = 0;
this.fpMain_Sheet1.ColumnHeader.AutoText = FarPoint.Win.Spread.HeaderAutoText.Blank;
this.fpMain_Sheet1.ColumnHeader.DefaultStyle.BackColor = System.Drawing.Color.White;
this.fpMain_Sheet1.ColumnHeader.DefaultStyle.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.fpMain_Sheet1.ColumnHeader.DefaultStyle.Locked = false;
this.fpMain_Sheet1.ColumnHeader.DefaultStyle.Parent = "HeaderDefault";
this.fpMain_Sheet1.ColumnHeader.HorizontalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
this.fpMain_Sheet1.ColumnHeader.VerticalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
this.fpMain_Sheet1.DataAutoCellTypes = false;
this.fpMain_Sheet1.GrayAreaBackColor = System.Drawing.Color.White;
this.fpMain_Sheet1.HorizontalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
this.fpMain_Sheet1.OperationMode = FarPoint.Win.Spread.OperationMode.ReadOnly;
this.fpMain_Sheet1.PrintInfo.ShowBorder = false;
this.fpMain_Sheet1.Protect = false;
this.fpMain_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpMain_Sheet1.RowHeader.DefaultStyle.BackColor = System.Drawing.Color.White;
this.fpMain_Sheet1.RowHeader.DefaultStyle.Locked = false;
this.fpMain_Sheet1.RowHeader.DefaultStyle.Parent = "HeaderDefault";
this.fpMain_Sheet1.RowHeader.HorizontalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
this.fpMain_Sheet1.RowHeader.VerticalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
this.fpMain_Sheet1.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.Single;
this.fpMain_Sheet1.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Row;
this.fpMain_Sheet1.VerticalGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
this.fpMain_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
this.fpMain.SetActiveViewport(1, 1);
进入程序以后,没有对FP再设置过其他属性,除了设置Column和Columnheader的Border |