Hi ,
 
I have  gridview in my project, in gridview added on link button  download pdf. 
 When   click on download pdf then generate a template as pdf Shown below image :
 
 
This is the Gridview :
 
 
 
This is preview template :
 
 
 
This is open when click on preview.
 
When I click on download pdf button in gridview i want to download template as pdf format.
 
Please help me .
 
Thanks.