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. How to Printing Network IP through MVC C#

How to Printing Network IP through MVC C#

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminarchitecturetutorial
3 Posts 3 Posters 3 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.
  • M Offline
    M Offline
    Member_15062276
    wrote on last edited by
    #1

    Hi I have a project developed in ASP.net MVC. Need to print to a receipt printer connected with Network IP. Can you share the code. Thanks Jewel

    Richard DeemingR J 2 Replies Last reply
    0
    • M Member_15062276

      Hi I have a project developed in ASP.net MVC. Need to print to a receipt printer connected with Network IP. Can you share the code. Thanks Jewel

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

      If the printer is connect to the server, and is available to the user account which your application pool is configured to run as, then you might be able to print to it. If the printer is connect to the client, then all you can do is issue a window.print(); command in Javascript, and hope that the user picks the correct printer, and that the printed output of the current document matches your requirements. There is no way to print to a client printer from server-side code, and client-side code deliberately has very little control over printing for security reasons.


      "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
      • M Member_15062276

        Hi I have a project developed in ASP.net MVC. Need to print to a receipt printer connected with Network IP. Can you share the code. Thanks Jewel

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        Usually you generate a PDF in the correct printer format, present the PDF for download, open the PDF and print.

        If it ain't broke don't fix it Discover my world at jkirkerx.com

        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