Can someone suggest the code for generating the report by the event of clicking the button in the form


u can call ur report in the click method of your button by using menufunction or simply u can drag and drop the menuitem of ur report on the forms desing

if i want to generate the report for particular record what i should do

You need to pass the record information from form to report using the Args class.You may refer the following link in order to get the help about Args class-

Moreover following link will help in passing the values between two forms-