cqtk 你好
我使用下面的代码可以对footer设置字体,代码如下:
- private void 打印_Click(object sender, EventArgs e)
- {
- #region 自定义打印页眉或页脚
- FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
- printset.Centering = FarPoint.Win.Spread.Centering.Horizontal;
- printset.BestFitCols = true;
- printset.BestFitRows = true;
- printset.ShowBorder = false;
- printset.ShowColor = true;
- printset.ShowGrid = true;
- printset.ShowShadows = false;
- printset.ZoomFactor = 2;
- printset.ShowColumnHeader = FarPoint.Win.Spread.PrintHeader.Hide;
- printset.ShowRowHeader = FarPoint.Win.Spread.PrintHeader.Hide;
- printset.Colors = new Color[] { Color.Red, Color.Blue };
- printset.Footer = "/fn\"Book Antiqua\" /c/fz\"30\" 打印销售情况表./n ";
- printset.Header = "/r/cl\"4\"第 /p 页 总共 /pc 页";
- printset.Preview = true;
- fpSpread1.Sheets[0].PrintInfo = printset;
- fpSpread1.PrintSheet(0);
- #endregion
- }
复制代码 |