Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.Net Printing

ASP.Net Printing

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zeyad Jalil
    wrote on last edited by
    #1

    Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All

    L A F Richard DeemingR 4 Replies Last reply
    0
    • Z Zeyad Jalil

      Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can't; printing on the client system is controlled by the client user. Browsers do not have direct access to local resources.

      1 Reply Last reply
      0
      • Z Zeyad Jalil

        Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All

        A Offline
        A Offline
        Afzaal Ahmad Zeeshan
        wrote on last edited by
        #3

        This question has been discussed bazillion times previously. The answer is always a No. That is because browser doesn't let web applications to communicate with local devices as they may use resources, such as paper, ink and energy in this case. Browsers always ask the users to intervene and grant permissions. Even if you only mean to print one page, who knows next web app might want to print 25, 100 perhaps? It is better to allow users to print this because if they already need that resource printed they would love to click on print button anyway.

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        1 Reply Last reply
        0
        • Z Zeyad Jalil

          Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All

          F Offline
          F Offline
          F ES Sitecore
          wrote on last edited by
          #4

          Would you want websites sending things to your printer without asking you?

          1 Reply Last reply
          0
          • Z Zeyad Jalil

            Hello, I develop a web application and I want to print an invoice from this application from button called "Print". My Question is: How to print the invoice on the local device printer (On client side) and without show the print dialog (Print directly to default printer on the Client device). Thanks All

            Richard DeemingR Offline
            Richard DeemingR Offline
            Richard Deeming
            wrote on last edited by
            #5

            You don't. As you were told last week[^]. The answer hasn't changed in the last six days. If you want to print something on the user's printer, you use window.print(), and you live with whatever UI the user's browser shows them.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups