Problem printing 2 copies of same fist label after skipping
The skipping itself works fine now I'm using the last sample you created,
but I'm still having the same problem trying to print 2 copies of the
same label. I've set BandsPerRecord to 2 but the first label is only
printed once. All other labels are printed twice as they should !
In article <8EAE82296ACCD311A039005004E0CAC003D292@DMSERVER>,
support@digital-metaphors.com says...
but I'm still having the same problem trying to print 2 copies of the
same label. I've set BandsPerRecord to 2 but the first label is only
printed once. All other labels are printed twice as they should !
In article <8EAE82296ACCD311A039005004E0CAC003D292@DMSERVER>,
support@digital-metaphors.com says...
This discussion has been closed.
Comments
property. However, you can open ppBands.pas and change the
DetailBand.BandsPerRecord property to writeable. Then you can set it to 1
when the skipping has finished, in the DetailBand.BeforePrint in the demo.
Be sure your new ppBands.pas is linked into your project.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
look for.
Thanks,
Harry.
you assign the detail band count. So, open ppBands.pas in your installed
RBuilder\Source. Change the Detailband.SetBandsPerRecord method as shown
below. Change your library path in the environment options to include
..\RBuilder\Source instead of ..\RBuilder\Lib
{---------------------------------------------------------------------------
---}
{ TppDetailBand.SetBandsPerRecord }
procedure TppDetailBand.SetBandsPerRecord(aValue: Integer);
begin
if (aValue < 1) then
FBandsPerRecord := 1
else
FBandsPerRecord := aValue;
FBandsPerRecordCount := 1; <--add this line
Reset;
end; {procedure, SetBandsPerRecord}
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com