回复 3楼洪水永不结冰的帖子
你好,
3# 打印方向问题,您的意思是打印机的默认设置为横向,而需要设置为纵向吗?
Spread目前还无法控件打印方向,提供的内置PrintInfo 类用于设置打印到 PDF效果,测试代码如下:
- FarPoint.Web.Spread.PrintInfo prinf = new FarPoint.Web.Spread.PrintInfo();
- prinf.BestFitCols = true;
- prinf.BestFitRows = true;
- prinf.Centering = FarPoint.Web.Spread.Centering.Both;
- prinf.ColEnd = 10;
- prinf.Colors = new System.Drawing.Color[] {
- System.Drawing.Color.Green,
- System.Drawing.Color.Yellow,
- System.Drawing.Color.Gold,
- System.Drawing.Color.Indigo,
- System.Drawing.Color.Brown};
- prinf.ColStart = 0;
- prinf.FirstPageNumber = 1;
- prinf.Footer = "/g\"1\"/cl\"4\"This is Page /p of /pc Pages";
- prinf.FooterHeight = 40;
- prinf.Header = "/cl\"0\"Print Job For FarPoint Inc./n /n ";
- prinf.HeaderHeight = 40;
- prinf.Margin = new FarPoint.Web.Spread.PrintMargin(10, 10, 10, 10, 20, 20);
- prinf.Opacity = 50;
- prinf.Orientation = FarPoint.Web.Spread.PrintOrientation.Landscape;
- FpSpread1.ActiveSheetView.PrintInfo = prinf;
- FpSpread1.SavePdfToResponse("test.pdf");
复制代码
关于 3# 问题红色框问题,目前没有内置属性来控制,需要询问产品组,看是否有合适的解决方案。
如果有其他问题,欢迎继续沟通。 |