DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: tino0914
今日帖子: 30
在线用户: 13
导航: 论坛 -> 报表专区 斑竹:sunyesy,iamdream  
作者:
男 icemanpro (icemanpro) ★☆☆☆☆ -
盒子活跃会员
2021/9/13 8:41:31
标题:
fastreport 出入库单打印应如何处理? 浏览:1905
加入我的收藏
楼主: 出入库打印为多联打印,假如一页单据可打印10个商品的话,如果这个出库单有20多个商品的话,应该如何设置打印模板?

如果不分页的话,一个单据可以打印完,但第二个单据连续打印时,打印头不能自动归位到初始位置。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/9/13 10:48:56
1楼: On EVENT "NEEDMOREDATA" you can break the pages if using non-dataset datas like a "stringlist" or similars.

if ItemPerPage = 10 then
   BREAK THIS PAGE code...  
   xxxx.NEWPAGE := TRUE


PascalScript:
procedure MasterData1OnAfterPrint(Sender: TfrxComponent);
begin
if <Line> = 2 then
Engine.NewPage;
end;
C++ Script:
void MasterData1OnAfterPrint(TfrxComponent Sender)
{
if (<Line> == 2)
Engine.NewPage();
}
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/9/13 10:50:28
2楼: https://www.fast-report.com/documentation/UserManFrNET-en/index.html?keepproperties.htm

https://www.fast-report.com/documentation/UserManFrNET-en/index.html?tableobjectexample7.htm

https://github.com/FastReports/FastReport/blob/master/Demos/Reports/Handle%20Page%20Breaks.frx
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行304.6875毫秒 RSS