spread报表控件打印时,只有4列,结果打印出来的很窄,只有纸张的一半宽度不到,但列内的文字却大量缺失了,这个如何解决?
// Create the print rules.
FarPoint.Win.Spread.SmartPrintRulesCollection printrules = new FarPoint.Win.Spread.SmartPrintRulesCollection();
printrules.Add(new FarPoint.Win.Spread.BestFitColumnRule(FarPoint.Win.Spread.ResetOption.All));
printrules.Add(new FarPoint.Win.Spread.LandscapeRule(FarPoint.Win.Spread.ResetOption.None));
printrules.Add(new FarPoint.Win.Spread.ScaleRule(FarPoint.Win.Spread.ResetOption.All, 1.0f, .4f, .2f));
// Create a PrintInfo object and set the properties.
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
printset.SmartPrintRules = printrules;
printset.UseSmartPrint = true;
printset.ShowRowHeader = PrintHeader.Hide;
printset.ShowColumnHeader = PrintHeader.Hide;
printset.ShowBorder = false;
printset.BestFitCols = true;
printset.BestFitRows = true;
printset.Margin = new PrintMargin(60, 60, 60, 60, 0, 0);
这样写的代码。
|
|