Than you Luca, your trick helped me, added those two lines in that file and compiled my project, but not Lazarus.
Except, in my case the procedure was named TBarcode.DoLines(Data: string; Canvas: TCanvas);
I use Lazarus 1.4.4 and the Lazreport that came with it.