- FarPoint.Win.Spread.SmartPrintRulesCollection rules = new FarPoint.Win.Spread.SmartPrintRulesCollection();
- rules.Add(new FarPoint.Win.Spread.ScaleRule(FarPoint.Win.Spread.ResetOption.None, 0.6F, 0.5F, 0.02F));
- rules.Add(new FarPoint.Win.Spread.BestFitColumnRule(FarPoint.Win.Spread.ResetOption.None));
- printset.SmartPrintRules = rules;
- printset.UseSmartPrint = true;
- printset.SmartPrintPagesWide = 100;
- printset.SmartPrintPagesTall = 1;
- printset.BestFitCols = true;
- printset.BestFitRows = true;
- //缩放比例
- //printset.ZoomFactor = 0.57f;
- //水平居中打印
- printset.Centering = FarPoint.Win.Spread.Centering.Horizontal;
复制代码
还是不行,感觉行高和列宽的缩放比例不同,当所有列能显示得下的时候,行已经挤的看不清了。 |