Print preview bug in IE7 with MS WebControls

A

alex

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:
 
A

alex

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>
 
A

alex

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top