title: How to print or view HTML from a TDBGrid?
body: <p>I was, until now, unable to find or create a good component to print the result of a <code>TDBGrid</code>, so what I did was to create a couple of <code>for ... do</code> and then save the result in a text file and opened right after with Notepad, so the user could print or save from there. Pretty ugly, right?</p>
  
  <p>Now it just came to me that I could use those loops to create HTML code instead, which is more presentable. But how can I use, for example a <code>TWebBrowser</code> or something else to show that result instead of the <code>TDBGrid</code> approach?</p>
  
  <p>And how can I print this HTML (with or without the <code>TWebBrowser</code>, as for example if I still use the <code>TDBGrid</code> to show the report and the HTML approach just if the user wants to print it)?</p>