以下是代码部分,帮忙看一下,谢谢
PaperSize ps = new PaperSize("Custom Size 1", CMToPX(900, 0), CMToPX(600, 1));
var rules = new SmartPrintRulesCollection();
rules.Add(new SmartPaperRule(ResetOption.None));
rules.Add(new BestFitColumnRule(ResetOption.None));
rules.Add(new ScaleRule(ResetOption.None, 1, 0.1f, 0.1f));
PrintInfo printInfo = new PrintInfo();
//printInfo.ZoomFactor = 2;
printInfo.SmartPrintRules = rules;
printInfo.SmartPrintPagesTall = 1;
printInfo.SmartPrintPagesWide = 1;
printInfo.UseSmartPrint = true;
printInfo.PaperSize = ps;
printInfo.ShowColumnHeader = FarPoint.Win.Spread.PrintHeader.Hide;
printInfo.ShowRowHeader = FarPoint.Win.Spread.PrintHeader.Hide;
printInfo.ShowBorder = false;
|
|