I am developing a desktop application in Windows Forms-C#. This has a report which is shown using WebBrowser control. I have generated a Report in HTML format. The report has 2 pages, Page 1-TnC and Page 2-Annexure. I have used "page-break-after" to add page-break forcefully.
<style>
.forcedbreak {page-break-before: always;}
</style>
</head>
<body>
<div>
<div class="forcedbreak">
</div
><div id="pg2">
When output of report is displayed in Web browser, the page-break is not shown. If I use the as same HTML string and store as a HTML page and open in IE the page-break is displayed as expected. If I render the same HTML string as PDF, the PDF is also showing page-break as expected. The same HTML is not rendered properly in WebBrowser control of Winform.
Can anyone help me about WebBrowser Control?
I have referred to this post also. Can I force a page break in HTML printing?