Hi Guys...

I am new to this thread as i am new to vb programming.

now, the problem is that in my application i m generating sql database. the data is displayed in datagridview. the user has a facility to filter data according to certain parameters. once filtered, user should be able print or perview the data. for the printing purpose i m writing the filtered data to excel sheet which is displayed in another tab. from here he can give print or printpreview command.

catch : when the user clicks print command, every thing works fine. i.e. print dialog comes up and on ok sheet gets printed. but when user issues print preview command, nothing nothing happens. preview window doesnt shows up.

what could be the problem or is there any other way to do this?

any help or suggestions will be highly appreciated.