Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to print DIV contents onlyHow to print DIV contents only
Previous
 
Next
New Post
5/14/2008 8:23 AM
 

Hello :)

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? Does DNNuke has a module than might help me resolve this?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to print DIV contents onlyHow to print DIV contents only


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out