title: How to add support for printing into my C++ application
body: <p>I have what seems like a simple task. I wrote a Windows application using C++. Now I need to add to it a capability to print forms -- nothing fancy, just plain text, with lines, tables, and simple graphics. Besides printing, a user needs to be able to preview on the screen all forms being printed.</p>
  
  <p>Previously I was able to get away with this task by using an embedded Internet Explorer control and design all forms in HTML (which I like -- the HTML part.) But the problem comes with IE... hmm... I wish I had a nickel every time I heard that phrase :) Anyway, IE can print an HTML page but it does not provide any easy way for users of my software to customize page size, page margins, etc.</p>
  
  <p>I <a href="https://stackoverflow.com/questions/18926793/add-support-to-print-preview-html-in-a-dialog-based-mfc-app">spent</a> a good deal of the last week trying to make <em>IE Print Templates</em> work with what I need ... but eventually failed. That stuff is very poorly documented and what I was able to do seems to randomly crash on me. So at this point I gave up on IE...</p>
  
  <p>So my question to you -- is there a way to incorporate printing into my C++ program for the purposes like I described above?</p>