private float reportHeight;
private void Data1_AfterPrint(object sender, EventArgs e)
{
reportHeight += (sender as BandBase).Height;
}
private void Page1_StartPage(object sender, EventArgs e)
{
if(Engine.FinalPass)
{
Page1.PaperHeight = (reportHeight + ReportTitle1.Height + PageHeader1.Height +PageFooter1.Height)/Units.Millimeters + Page1.To pMargin +Page1.BottomMargin;
}
}
关于FastReport自定义纸张高度
最新推荐文章于 2023-04-14 10:47:44 发布