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

  • SEARCH
  • Home
  • 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 6743929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:01:23+00:00 2026-05-26T12:01:23+00:00

I mean: user click some print button and printer start printing. Is it that

  • 0

I mean: user click some “print” button and printer start printing. Is it that possible?

Please take in account that already exist a server process behind (via AJAX) that can return success to print (or html to show, whatever) or error to show an alert. That is not the problem.

EDIT:

After some quick comments (thanks!) I meant “open print dialog” not “start printing”.

  • 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-26T12:01:23+00:00Added an answer on May 26, 2026 at 12:01 pm

    You already have an HTML page; the one where the button is. You can have different style sheets for the page for the screen and the printer using the media asttribute or @media directive. You can have different looks and layout for when the page is printed, or you can even have a completely different set of elements.

    Example:

    #PrintContent { display: none; }
    
    @media print {
    
       #RegularContent { display: none; }
       #PrintContent { display: block; }
    
    }
    

    To have the button print the page, just use the print method:

    <input type="button" onclick="window.print();" value="Print me!" />
    

    This will of course not just start printing, but opens the print dialog. To print something without that dialog you would need to run a component in the browser, but starting the component would require user confirmation, so you would get a dialog anyway, and a much more intimidating one.

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

Sidebar

Related Questions

What I mean is, when user click a button on a webpage, a program
I mean when the user starts my application(exe). I want it to start directly
How can we store user information in session in silverlight, mean how to handle
What exactly is meant by the term rich user interface? Does it mean the
The unique poll/vote/survey i mean here is, user can only vote once. How do
I mean, how does Java decide which protocols are available? I run some code
I have the following usecase: A div with some buttons When the user clicks
I have a button on the page in asp.net mvc control. when I click
I'd like to add some functionality to a site that would allow users to
Is it possible to make such a HTTP response, that the browser ignores it

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.