Groups | Blog | Home
all groups > asp.net webcontrols > december 2006 >

asp.net webcontrols : Print preview bug in IE7 with MS WebControls


alex
12/5/2006 7:42:14 PM
When I print preview the sample HTML below in IE7 I get a blank 1st page and
nothing after page 2. If I shorten the content of the pageview so it fits
in less than a page, then print preview works. Do you see this bug as well?
Is there a work around you can think of? Thanks. Alex.


Sample HTML I used in my testing:

alex
12/5/2006 7:44:28 PM
Sorry I missed the HTML.. here it is:

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="testMulti.aspx.vb" Inherits="toss.testMulti" %>
<%@ Register TagPrefix="twist" Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<HTML>
<HEAD>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body topMargin="0" >
<form id="DotNetForm" runat="server">
<twist:multipage id="OppMultiPage" style="PADDING-TOP: 10px;"
runat="server">
<twist:pageview>
Sample Text<br><br><br><br><br><br><br><br><br><br><br>
Sample Text<br><br><br><br><br><br><br><br><br><br><br>
Sample Text<br><br><br><br><br><br><br><br><br><br><br>
Sample Text<br><br><br><br><br><br><br><br><br><br><br>
Sample Text<br><br><br><br><br><br><br><br><br><br><br>
Sample Text<br><br><br><br><br><br><br><br><br><br><br>
</twist:pageview>
</twist:multipage>
</form>
</body>
</HTML>


[quoted text, click to view]

alex
12/6/2006 3:30:19 PM
Issue resolved. The problem was the DOCTYPE tag. I changed the line to
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> or removed
it entirely and the bug goes away. I suspect the webcontrols are not XHTML
compliant...

[quoted text, click to view]

AddThis Social Bookmark Button