Closing the preview window after printing
Hello,
How can i close the preview window after printing the repport.
I tryed to use the OnPrintReport but this stop the application with an access violation
.
My application have to print only one repport and after printing destroy the data report and close the preview window; and i made all these actions in the OnPrintReport event handler.
Can you help me ?
Thanks
Laurent
How can i close the preview window after printing the repport.
I tryed to use the OnPrintReport but this stop the application with an access violation

My application have to print only one repport and after printing destroy the data report and close the preview window; and i made all these actions in the OnPrintReport event handler.
Can you help me ?
Thanks

Laurent