我使用此代码来增加水晶报告的高度标题
CrystalReportViewer1.ReportSource = print_report1 ' msgbox(print_report1.Section2.Height) '// print value 4000 print_report1.Section2.Height = 10000 msgbox(print_report1.Section2.Height) '// print value 10000 CrystalReportViewer1.Refresh()
打印新高度值时高度从 4000 更改为 10000,但未在查看器中显示新高度?
EDIT ' 更改仅在查看器中单击更新图标时出现,代码中不出现 CrystalReportViewer1.Refresh()
经过长时间的搜索,我修复了它,我只是使用此代码来更新报告的形状
CrystalReportViewer1.RefreshReport()
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句