How can I save a QR report in qrp format via CODE

I need to keep a history of all the generated reports but I am unable to
find the proper function or methode which could save the report in QRP
format. Its is possible with the Preview window of QuickReport; calling the
save dialog box and saving it but I NEED it AUTOMATICALLY cause the user
only takes only the printed report and the program MUST keep a copy of it
for later retrieval.