I have this situation: I need to print some data, but on the specs
of the site, pop-ups are restricted. So I am writing the data in a DIV
and raise it in the page dynamically with Javascript. I have tried a
lot of methods, however none is printing the correct data. Notice that
this html code, works fine in our old site, builded in asp.
In IE:
First I tried with @media print, using body display:none, and
printdiv display:block. It was working on a plain page, until I
included the div inside a form. I've tried many things, nothing worked.
Second, I used visibility:hidden for body. This worked, however I
had to move the div in position 0,0 with script. Except that, if the
page is long, it prints empty pages.
On both cases though, the page is printed blurry... like an image. Text is not clear.
In Firefox, with @media print, it does not hide the body, or it
hides everything. Same with visibility. When using script to move in
position 0,0, it doesn't move.
On both cases, when div is visible, the text is printed clear.
What am I doing wrong? Is there another concept to achieve this? Most important: Why is printed fuzzy in IE???