title: Yii2: How to print a gridview?
body: <p>I am using <a href="http://demos.krajee.com/export" rel="nofollow noreferrer">yii2-export</a> library to print a table.</p>
  
  <p>The table has 600 rows but the user only wants to print the first 20 rows.</p>
  
  <p>The user exports to a PDF file (so then he can print it) but it's big so the PHP server doesn't respond.</p>
  
  <p>I tried printing with the browser (CTRL+P) but it prints buttons and also it so ugly.</p>