Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1046007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:04:32+00:00 2026-05-16T16:04:32+00:00

Strange problem. I have a simple webform where users can fill in text and

  • 0

Strange problem. I have a simple webform where users can fill in text and check/uncheck some checkboxes. When this is printed to pdf or paper (or print preview) in IE (7 or 8) the checkboxes are printed unchanged. E.g. user sets a check, this is printed unchecked … or with a pre-checked box with the user unchecked, is printed checked.

Same goes for the radio.

Only when I remove the DocType completely, IE prints it correctly. But I need to use XHTML-strict.

This is a simple example which fails in IE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="nl" xml:lang="nl-NL"> 
<body>
<input type='checkbox' name='y'/><br/>
<input type='radio' name='x'/><br/>
</body>
</html>

Doesn’t work with any doctype I tested (loose or html4).

Anyone a idea how to solve this?

Many thanks,
Michael

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:04:32+00:00Added an answer on May 16, 2026 at 4:04 pm

    Turns out to be a IE8 bug:
    http://webbugtrack.blogspot.com/2009/04/bug-444-ie8-printing-issues-in.html

    It’s not having this problem with “Compatibility View” turned ON.

    A solution is to add the following in the header:

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    

    Which kinda breaks validation and gives a problem when IE9 comes up.

    Other “nice” workaround with JavaScript works also:

    <input type='checkbox' name='y' onclick='SetCheck(this)'/>
    .....
    
    function SetCheck(el)
    {
      if(el)
      {
        if(el.checked)  el.setAttribute('checked','checked');
        else            el.removeAttribute("checked");
      }
    }
    

    But when you cannot rely on javascript being turned on, you’re screwed by Microsoft.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered strange problem. I have created simple Flash text field control and
I have a very strange problem. Under some elusive circumstances I fail to apply
I've come across a really strange problem. I have written a simple Deck class
I seem to have a strange problem. I am working on a simple dashboard
I've got a quite strange problem here. I'm calling some simple code via Ajax.Updater:
I have strange problem with XUL layouts. My current code: <xul:vbox> <xul:hbox> .. some
I am seeing a strange problem: I have a linux machine, installed JDK1.6 on
I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed
I have a very strange problem, when I try to var_dump (or print_r )
I have a very strange problem with the Delphi 2006 IDE. If the IDE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.