Hi,
is there any way to update hte print preview dialog once it is loaded with grid. Actually what I want to do is that when user click on the printpreview button, print preview is loaded and and then using menu option he update the grid lines and I want to see the updated print preview. is it possible to refersh the print preview with latest grid.
Regards,Bunty :)
Hi Bunty,
Bunty_Mishra said:is there any way to update hte print preview dialog once it is loaded with grid
No. The way printing works is that the PrintDocument fires off events and the grid draws itself into each page. All of this happens before you ever see the print preview. So it's not something you can dynamically change on the fly.
Mike,
Thank you for your update. Is it possible to close the print preview and then reload the print preview option on custom menu click item? Please suggest. Is there any way I can close the print preview option and then reload with new grid. I have done dispose but it throws error on the form.
Bunty :)