Quick Report load and print programmatically

How can I load and print a saved report (.QRP) without preview ?
I used a TQuickRep component placed on a form as the fragment code below:

  QR->QRPrinter = new TQRPrinter();
  QR->QRPrinter->Load(AnsiString(File));
  QR->Prepare();
  QR->Print();
  delete FlatQR->QRPrinter;
  QR->QRPrinter = NULL;

but this prints only a blank sheet.
Thank you to everyone that can help me.
Paulfl

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.