Reputation: 17313
I was curious if I can embed printing of HTML markup in my C++ application? Here's what I need:
Upvotes: 1
Views: 1640
Reputation: 1516
It would be easier to virtually print the HTML page to a PDF file using wkHTMLtoPDF C++ Library, and then print it.
Pros:
Cons:
Upvotes: 3
Reputation: 3156
MFC has a CHtmlView class that is part of their Document/View architecture. Hence, you can create a rather simple MDI "Web Browser" in MFC pretty easily.
Upvotes: 1
Reputation: 19642
Have a look at this library: http://www.terrainformatica.com/htmlayout/ . It does everything you need, assuming you want to print the rendered html, and not syntax-highlighted html source code, which is not entirely clear from your question - but
Upvotes: 1