如何应用和显示 使用 vb.net 在查看器中更改 crystal 报告的 header 高度

how to apply and showing Change the header height of the crystal report in the viewer using vb.net

我使用此代码增加 crystal 报告的高度 header

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,但在查看器中没有显示新高度?

编辑 ' 只有在查看器中单击更新图标时才会出现更改,不会通过代码出现 CrystalReportViewer1.Refresh()

经过长时间的搜索我修复了它,我只是使用这段代码来更新报告的形状

 CrystalReportViewer1.RefreshReport()