2
On the mainform onCreate, 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 empty, with 0kb. Where I am missing?
To be sure I would need to download the component, but I have a doubt. The file 'file.qrp' is along with the application executable ? Tries to specify its path. Ex: 'c:/.qrp file'.
– Victor Tadashi
Yes, it is together. When I give a Quickrep1.Printer.Preview; the file is displayed, signal that it is being loaded properly
– Wallace Magalhães
Can you tell me which version of Quickreport is using ?
– Victor Tadashi
is version 5.02
– Wallace Magalhães
I couldn’t assemble the code as your example. In the
QuickRep1.Printer.Load('arquivo.qrp');
have to trade forQuickRep1.QRPrinter.Load('arquivo.qrp');
In addition, it can provide an extension file . qrp for testing ?– Victor Tadashi