Dynamic Label Printing
I need to design a label report, which read data from detail line and two parameters determine how many copy of label will be print out.
e.g. [qty 10000] [label qty 500] then 10000/500, 20's label will be print out
Also each page only can print six label - portrait
I know this should use program code to control, but I have no any idea anyone can help!
e.g. [qty 10000] [label qty 500] then 10000/500, 20's label will be print out
Also each page only can print six label - portrait
I know this should use program code to control, but I have no any idea anyone can help!
Comments
see the topic self contained label report posted by me on 11/8/2006
I use manual built event to slove my problem the following is my code:
//<PQTY>=QTY/LABEL_QTY set in report-->variables
procedure Page1OnManualBuild(Sender: TfrxComponent);
var
x : integer;
DataSet : TfrxDataSet;
begin
DataSet := MasterData1.DataSet;
DataSet.First;
while not DataSet.Eof do
BEGIN
CopyCnt:=<PQTY>;
for x := 1 to CopyCnt do
begin
Engine.ShowBand(MasterData1);
END;
DataSet.Next;
end;
end;
begin
// Main Program
// initialize vars
CopyCnt := 1;
end.