fpSpread1_Sheet1.PrintInfo.Preview = true;
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();//定义打印设置对象
printset.PrintType = FarPoint.Win.Spread.PrintType.CellRange; // 设置打印类型
printset.ColStart = 0; // 设置开始打印列索引
printset.ColEnd = fpSpread1_Sheet1.Columns.Count; // 设置结束打开列索引
printset.RowStart = 0; // 设置开始打印行索引
printset.RowEnd = fpSpread1_Sheet1.Rows.Count; // 设置结束打印行索引
fpSpread1_Sheet1.PrintInfo = printset; //为第一个表单设置PrintInfo属性
fpSpread1.PrintSheet(0); // 打印工作表 |
|