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 7440683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:53:24+00:00 2026-05-29T10:53:24+00:00

I am currently fetching the complete user details and lists it into a html

  • 0

I am currently fetching the complete user details and lists it into a html table from the database table.I need to take the print of that particular list so i use the window.print()
to do it. I place the entire html table which needed to be printed inside a div called <div id="printableArea"> and uses the following javascript to do the job.

function printDiv(printableArea)
     {
        var tabl = document.getElementById('tablePrint');
        var row = tabl.rows[0];
        var cell = row.cells[0];
        cell.innerHTML = '';
        var printContents = document.getElementById(printableArea).innerHTML;
        var originalContents = document.body.innerHTML;
        document.body.innerHTML = printContents;
        window.print();
        document.body.innerHTML = originalContents;
    }

But the problem is that i am getting the pagination button delete button in the bottom of the page along with the check boxes for selection corresponding to each row.How can i avoid those? Also i need to take the print out page to be in a grid format.

Need suggestions. Thanks in advance.

  • 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-29T10:53:25+00:00Added an answer on May 29, 2026 at 10:53 am

    I’d suggest hiding them. Then, when printing is over, show them again, if need be.

    This can be done in 2 ways:

    • Load another stylesheet, which hides the unneeded div’s

    either this or this should do it

    • Hide them via Javascript like so (using jQuery):

    $('#idOfDivToHide').hide();

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

Sidebar

Related Questions

I'm currently fetching data from a MySQL database using JDBC and executeQuery . One
I am currently asynchronously fetching json documents to update elements in a few html
I'm currently looking into automating a flex build so that we can get it
Currently i am working on xmlrpc library of codeigniter. we are fetching data from
I'm making a chrome extension that requires fetching an xml file from a secure
I currently have an option that allows a user to change the display order
I am currently writing an application that pulls new information from RSS sources and
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently I'm doing some unit tests which are executed from bash. Unit tests are
Currently, if I want to output a SQL script for a table in my

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.