FastReport.net 打印空行


 1.不分页打印固定空行

在数据区下插入子报表,设置子报表的“最少数据行”。

2.隔行打印空行

在数据区下插入子报表,在页脚添加下面的事件代码。

 private void PageFooter1_BeforePrint(object sender, EventArgs e)
    {
      while (Engine.FreeSpace > Engine.PageFooterHeight + Child1.Height)
      {
        Engine.ShowBand(Child1);
      }
    }

3.在最后一页打印空行

(1)进入报表设界面,将“双通道”项打上钩,如下图

(2)在数据区下插入子报表,在页脚添加下面的事件代码。

    private void PageFooter1_BeforePrint(object sender, EventArgs e)
    {
      while (Engine.FreeSpace > Engine.PageFooterHeight + Child1.Height&&Engine.PageNo==Engine.TotalPages)
      {
          Engine.ShowBand(Child1);
      } 
    }

 

 

 

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
FastReport 6.6.17 Enterprise Source Code for Delphi7 and Delphi27 (10.4 Sydney) FastReport Package Simplification Management Toolkit by xander.xiao@gmail.com, version 2.0, 2020-5-27 What is Package simplification management ? As Fastreport include a stack of design package files, it is boring to install these packages manually, we need a easy way to work out it, here is my solution which may apply to any package management besides Fastreport: My solution, in a brief, copy all files of all packages in one folder which is named by a Environment varible %ProjectHome% which has following structure: %ProjectHome%\Bin for all BPL files of all packages, runtime and design time files %ProjectHome%\LibD7 for Delphi 7 Compiled unit files and resource files (dcu,dcp,dfm,res etc.) %ProjectHome%\LibD26 for Delphi XE 10 Rio Compiled unit files and resource files (dcu,dcp,dfm,res etc.) Each Delphi version related folder may have platform (Win32,Win64 etc.) and configuration (release or debug) specified subfolders. after that, double click REG files to import Delphi known design time packages. This toolkit include two sets: 1. Resource translation, this function is provided by res\FR4Trans.exe, res\frccEx.exe and res\Chinese\@Deploy.bat, besides Chinese it can work with any language 2. Package simplification management, it is functioned by @DelUnUsedFiles.bat,@Deploy.bat,@BuildAllPackages.bat and REG files in quickInstall folder All source code included, you can modified freely. Usage: step0: Make a backup of your fastreport source code, then copy all files in this folder to FastReport home folder. Step1: Execute recompile.exe to generate specified version related folder and files (Recompile all package first, then Change Language to Chinese or othor one). step2: Execute @DelUnUsedFiles.bat to delete unused files in the folder which step1 generated. step3: Execute @Deploy.bat to deploy all files to the project home folder. step4: Double Click reg files in quickInstall folder to install design time BPLs in Delphi IDE, here assume that your ProjectHome is D:\Projects, you may change it. step5: optional, Instead of "recompile.exe-Recompile all package", Execute customized @BuildAllPackages.bat to recompile all package files if you modified any file in the folder which step1 generated. Step6: optional, Instead of "recompile.exe-Change Language to", Execute res\chinese\@deploy.bat if you need very formated Chinese resource code files, before this, you can Execute res\FR4Trans.exe to do translating in your prefered way, you may copy res\chinese\@deploy.bat to othor language folder.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值