Hi Rajkumar, Sorry for late reply. In our application the CPreviewView class was already customized but not the OnPreviewPrint function. so i derived that and added the code. Now when i click the print button in the print preview window the preview window remains and print dialog comes up, but whenever i give OK or CANCEL on the print dialog automatically both the print dialog & preview window closes. I am not understanding why it is happening like that. Did you tried the above in your application, how was the behaviour??
U
User 4470909
@User 4470909
Posts
-
Preview window closes when print button is clicked in print preview -
Preview window closes when print button is clicked in print previewHi Friends, I am facing a problem with print preview, actually in the print preview window when we click the print button the preview button closes and print dialog comes up. I want the preview window should not close. Can any one help me how to do that. thanks, pradeep