In the onCreate of the mainform, I have the following code:
procedure TForm1.FormCreate(Sender: TObject);
begin
QuickRep1.Prepare;
QuickRep1.Printer.Load('arquivo.qrp');
QuickRep1.ExportToFilter(TQRAsciiExportFilter.Create('teste.txt'));
QuickRep1.Free;
end;
It should open a QRP file and save as TXT. It even creates the test.txt, but the file is blank, with 0kb. Where am I going wrong?