NotePrinting Sucks

time to read 1 min | 159 words

They say that printing from the web sucks, they are right. After spending quite a bit of time on it, I realized that this does not work:

<br style="page-break-after: always"/>

You have to define it externally in a <style> element of a CSS file, define a class for it and then:

<style>
br.PageBreak { page-break-after:always;}
</style>
<br class="PageBreak"/>

More posts in "Note" series:

  1. (06 Feb 2007) Printing Sucks
  2. (06 Jan 2007) Changes in NHibernate Connection Provider