Load an Quick Report File (.QRP) saved previously  

Send By: Christian Engstfeld
Web : www.PlanetSoftware.8k.com
Email: Christian.Engstfeld@inworx.com.ar
Date: 21/02/02

Tip accessed 1460 times

 


Add to uses this units: QuickRpt, QRExtra, Dialogs.
Put this code in Button1.OnClick and you will load Quick Report File.

 var Dialogo: TOpenDialog;
 begin
   with TQRPHandler.Create do
     try
       Dialogo:= tOpenDialog.Create(Application);
       Dialogo.Filter:='Archivo QuickReport|*.QRP';
       if (Dialogo.Execute) then Filename := Dialogo.Filename;
       Dialogo.free;
       Preview;
     finally
       Free;
     end;
 end;





People have written me saying that the trick doesn't compile...
Investigating the reason, it seems to be that the class TQRPHandler in some versions of QuickReport is included in the you unit QRExtra, however, in other versions this included in uniting QRBonus that alone it was distributed the registered users of QuickReport.
Conclusion: if your compiler doesn't know the class TQRPHandler it is hour that you look for another more current version of QuickReport.


Updated at 27/08/2001