本帖最后由 啦啦啦123 于 2022-3-31 15:33 编辑
是高度不够,想自动拉伸,那看起来是不能完成了
PrintInfo printInfo = new PrintInfo();
printInfo.RepeatRowStart=0;
printInfo.RepeatRowEnd=1;
printInfo.ZoomFactor = 1;
printInfo.Centering = Centering.Horizontal;
printInfo.ShowColumnHeader = PrintHeader.Hide;
printInfo.ShowRowHeader = PrintHeader.Hide;
printInfo.SmartPrintRules = rules;
printInfo.UseSmartPrint = true;
printInfo.SmartPrintPagesTall = 1;
homePageScreen.ScreenSpread.SetPrintInfo(printInfo, 0);
homePageScreen.ScreenSpread.PrintSheet(0);
|