为什么我设置了不管用呢?
FarPoint.Web.Spread.PrintInfo prinf = new FarPoint.Web.Spread.PrintInfo();
prinf.Margin.Top = 10;
prinf.Margin.Left = 20;
prinf.Margin.Right = 15;
prinf.Margin.Bottom = 25;
prinf.HeaderHeight = 1;
prinf.FooterHeight = 1;
prinf.Centering = FarPoint.Web.Spread.Centering.Horizontal;
prinf.Orientation = PrintOrientation.Landscape;
prinf.ShowBorder = false;
prinf.ShowColor = false;
prinf.ShowGrid = false;
prinf.ShowRowHeader = PrintHeader.Hide;
prinf.ShowColumnHeader = PrintHeader.Hide;
prinf.ZoomFactor = 1;
FpSpread1.Sheets[0].PrintInfo = prinf;
|