Hi, i'm new using lazarus, i have been working on an application that do a full inventory check for a library of my school, almost all of the code is ready except for the form that generates the report, the report is already set with all the data but when i try to load the file i get an error saying that the file is not found like this
Error While loading report: File not found (ReporteMaterialBibliografico.lfr)
This is the code of my button
procedure TForm6.Button1Click(Sender: TObject);
begin
ShowMessage ('Reporte Generado');
frReport1.LoadFromFile('ReporteMaterialBibliografico.lfr');
frReport1.ShowReport;
end;
the objects in my form are:
Button1 (the one that generates the report)
Button2 (to return the previous form)
Static Text (Says the name of the report)
frReport1 (to design the report)
Zquery1 (to fill the report data)
Zquery2 (to fill other part of the data in the report)
frDBDataSet1
frDBDataSet2
Lazarus Version V.1.6.4
Lazreport Version V0.9.9
Sorry for my english i'm still learning