K
kevinmj
Unregistered / Unconfirmed
GUEST, unregistred user!
如何用PrintDBGridEh动态打印主表(表头)内容?
"销售单"是主子表结构,用PrintDBGridEh来打印DBGridEh的表体(销售明细)内容,
很好用,因为可以动态改变列宽等
但主表(即表体内容,如日期、客户、单据号等)要怎么打印呢?
我参考了Demo,然后在PrintDBGridEh1.BeforeGridText中设置了几个变量
@date,@cusname,@id
用
PrintDBGridEh1.SetSubstitutes(['&date','2003-1-1']);
PrintDBGridEh1.SetSubstitutes(['&cusname','某客户']);
PrintDBGridEh1.SetSubstitutes(['&id','000000001']);
PrintDBGridEh1.Preview;
但只有最后一个即@date生效了,所以这个办法是错的。希望能尽快帮忙!
今天内能答复我的另外加100分,谢谢!
"销售单"是主子表结构,用PrintDBGridEh来打印DBGridEh的表体(销售明细)内容,
很好用,因为可以动态改变列宽等
但主表(即表体内容,如日期、客户、单据号等)要怎么打印呢?
我参考了Demo,然后在PrintDBGridEh1.BeforeGridText中设置了几个变量
@date,@cusname,@id
用
PrintDBGridEh1.SetSubstitutes(['&date','2003-1-1']);
PrintDBGridEh1.SetSubstitutes(['&cusname','某客户']);
PrintDBGridEh1.SetSubstitutes(['&id','000000001']);
PrintDBGridEh1.Preview;
但只有最后一个即@date生效了,所以这个办法是错的。希望能尽快帮忙!
今天内能答复我的另外加100分,谢谢!