title: In MVC, How to export table datas displayed in view based on a (filter value/ no filter) to a file(pdf, word, excell, csv)
body: <p>I am using Visual Studio 2012, MVC 4, postgresql, - building a web application.</p>
  
  <p>Right now i am in need of exporting the table datas displayed based on filter value to any external file type(pdf, word, excell, csv).</p>
  
  <p>I am using ajax pagination to display the records page wise(max 10 records per page).</p>
  
  <p>question is how to get the specific data displayed in view to controller? if i could get this data, then i can finish this process of creating file with that data! based on links below.</p>
  
  <p>though i could found creating word, pdf, excel, csv files with data in online mentioned in below link.
  Excel file</p>
  
  <p><a href="http://www.codeproject.com/Articles/325103/MVC-Grid-to-Excel-file-download" rel="nofollow noreferrer">http://www.codeproject.com/Articles/325103/MVC-Grid-to-Excel-file-download</a></p>
  
  <p>word document</p>
  
  <p><a href="http://www.codeproject.com/Articles/660478/Csharp-Create-and-Manipulate-Word-Documents-Progra" rel="nofollow noreferrer">http://www.codeproject.com/Articles/660478/Csharp-Create-and-Manipulate-Word-Documents-Progra</a></p>
  
  <p>pdf document</p>
  
  <p><a href="https://stackoverflow.com/questions/1510451/how-to-return-pdf-to-browser-in-mvc">How to return PDF to browser in MVC?</a></p>
  
  <p>kinldy help me for the above.</p>