Note that there are some explanatory texts on larger screens.

plurals
  1. POPrint and Print Preview missing data in IE8
    primarykey
    data
    text
    <p>In a specific screen I need to let the user print out some data. Due to the complexity of the data displayed, it is used a label:</p> <pre><code>lblTree.Text = stringHTML; </code></pre> <p>The tree is displayed using a dynamically constructed HTML string. The final string is 52 000 characters long. I don't think that is important, but I thought I would explain the background. In aspx, it looks like this:</p> <pre class="lang-html prettyprint-override"><code>&lt;table border="0" cellpadding="0" cellspacing="0"&gt; &lt;tr&gt; &lt;td colspan="3" align="left" class="PrintTBLHeader"&gt;&lt;br /&gt;report as of 20/09/2012 : &lt;br /&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3"&gt;&lt;br /&gt;&lt;asp:Label runat="server" ID="lblTree"&gt;&lt;/asp:Label&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3" align="left" class="PrintTBLHeader"&gt;&lt;br /&gt;2nd title:&lt;br /&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3"&gt;&lt;br /&gt;&lt;asp:Label runat="server" ID="lblMPMtree"&gt;&lt;/asp:Label&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>The problem is this: when I open the print preview, it should say 6 pages (like in firefox and chrome - those are working right), but this print preview from IE8 is showing me only 3 pages. </p> <p>lblTree is cut at the end of the 1st page Then on the second page, instead of showing the rest of lblTree, it starts with the "2nd title" (tr #3 in the example above)</p> <p>I found some article related to something like this, where the solution was adding <code>media="print"</code> to the <code>&lt;link&gt;</code>.</p> <pre class="lang-html prettyprint-override"><code>&lt;link rel="stylesheet" type="text/css" href="..." media="print" /&gt; </code></pre> <p>That did not work.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload