要求来源:无锡福隆玻璃
加工单/订单统计本页的玻璃情况:
-------------------------------------------------------------------------------------------------------
4MM白玻 23片 44.23平方
6MM白玻 46片 60.75平方
用报表设计器打开报表,
---------------------------------------------------------------------------------------
Page Header的OnPrint输入:
MyFooter = ""CurrentPrdName = ""CurrentPrdNum=0CurrentPrdArea=0PrdIndex=0
----------------------------------------------------------------------------------------
Detail的OnPrint输入:
If CurrentPrdName = P_Product_Id Then CurrentPrdNum = Num + CurrentPrdNum CurrentPrdArea = Area + CurrentPrdAreaElse If CurrentPrdName<> "" Then PrdIndex = PrdIndex + 1 MyFooter = MyFooter & "(" & PrdIndex &")" & CurrentPrdName & ":" & CurrentPrdNum & "=" &CurrentPrdArea & "~~~~~~~~" EndIf CurrentPrdNum = Num CurrentPrdArea = Area CurrentPrdName = P_Product_IdEndIf
-----------------------------------------------------------------------------------
Page Footer里的OnPrint输入:
If CurrentPrdName<> "" Then PrdIndex = PrdIndex+1 MyFooter = MyFooter & "(" & PrdIndex &")" & CurrentPrdName & ":" & CurrentPrdNum & "=" &CurrentPrdArea & " "EndIf
-------------------------------------------------------------------------------------
最后在Page Footer建立打印对象,
Name=MyFooter
Text=MyFooter
Calculated=true
顶一下.值得研究,都是用VB语言写,
可以解决不少问题.特别是手工模式根深蒂固的人员一般都有这样的要求
浙ICP备06025955号