First or last label different from others
Hi
using DELPHI XE, Report Builder 15.05.
How can I print labels where:
- When I collect merchandise, I will not print the first label.
- When I received merchandise, I will print first label different from
others
The different label can be the first or the last.
And how can I change text on label like thate
1/5
2/5
3/5
4/5
5/5
Best regards
Sergio Melchiori
using DELPHI XE, Report Builder 15.05.
How can I print labels where:
- When I collect merchandise, I will not print the first label.
- When I received merchandise, I will print first label different from
others
The different label can be the first or the last.
And how can I change text on label like thate
1/5
2/5
3/5
4/5
5/5
Best regards
Sergio Melchiori
This discussion has been closed.
Comments
I apologize but I'm a bit unclear about what type of labels you are
printing.
Are you printing numerous labels on a single sheet of paper such as
Avery labels or are you printing to a continuously fed label printer
such as a Zebra printer?
Also, what determines whether you are collecting merchandise or
receiving it? Will you know this before printing the report?
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Zebra printer with continuos label.
Those label are for boxes.
First label I would like to be different to give as receipt.
And I would change qty of labes as qty of boxes.
Like that
Some times first label (receipt) doens´t need to print.
Could be first ou last label.
Best regards.
Sergio Melchiori
I solved this way
Create 2 region
- Region1 - label
- Region2 - receipt
procedure TForm40.ppDetailBand1BeforeGenerate(Sender: TObject);
begin
ppregion2.Visible:= ppDBPipeline1.FieldValues['RECEIPT'] = 'YES';
if ppDetailBand1.BandsPerRecordCount <= 1 then
begin
if ppregion2.Visible then
ppDetailBand1.BandsPerRecord:=ppDBPipeline1.FieldValues['QTY']+2;
else
ppDetailBand1.BandsPerRecord:=ppDBPipeline1.FieldValues['QTY']+1;
end;
if ppDetailBand1.BandsPerRecordCount > 1 then
ppregion2.Visible:= False;
ppregion1.Visible:= not ppregion2.Visible;
end;
Well done! Since you are using a continuous label printer, toggling the
visibility of regions or subreports is the way to go.
You can also use a TppSystemVariable set to PageSetDesc to show the
label number and label count.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com