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. Client-Side print

Client-Side print

Scheduled Pinned Locked Moved ASP.NET
questiontutorial
7 Posts 2 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.
  • A Offline
    A Offline
    albCode
    wrote on last edited by
    #1

    How can i use Client-Side to print from web. Any idea, example???? Regards....

    E 1 Reply Last reply
    0
    • A albCode

      How can i use Client-Side to print from web. Any idea, example???? Regards....

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      Not sure this is what you want or not....just using the js window.print() method... << >>

      A 1 Reply Last reply
      0
      • E enjoycrack

        Not sure this is what you want or not....just using the js window.print() method... << >>

        A Offline
        A Offline
        albCode
        wrote on last edited by
        #3

        I have tryed window.print() method but how can print from client-side, from Server-side i can print fine. i use print function in java but that just call me the printing window. Regrads

        E 1 Reply Last reply
        0
        • A albCode

          I have tryed window.print() method but how can print from client-side, from Server-side i can print fine. i use print function in java but that just call me the printing window. Regrads

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          seferi wrote:

          from Server-side i can print fine

          What do you do at server-side?

          seferi wrote:

          but that just call me the printing window.

          Sure, becoz the IE will do it for you... << >>

          A 1 Reply Last reply
          0
          • E enjoycrack

            seferi wrote:

            from Server-side i can print fine

            What do you do at server-side?

            seferi wrote:

            but that just call me the printing window.

            Sure, becoz the IE will do it for you... << >>

            A Offline
            A Offline
            albCode
            wrote on last edited by
            #5

            Server side printing i use is: using CrystalDecisions.CrystalReport.Enegine; using CrystalDecisions.Shared; . . . . . ReportDocument dok = new ReportDocument(); dok.load(server.MapPath("CrystalReport.rpt")); dok.PrinterSettings.Printername = 'HP LaserJet 2200 Series PCL'; dok.PrintToPrinter(1,false,0,0); Response.Write("alert('Printing report has done!')"); Client-Side still don't get know how??? :(

            E 1 Reply Last reply
            0
            • A albCode

              Server side printing i use is: using CrystalDecisions.CrystalReport.Enegine; using CrystalDecisions.Shared; . . . . . ReportDocument dok = new ReportDocument(); dok.load(server.MapPath("CrystalReport.rpt")); dok.PrinterSettings.Printername = 'HP LaserJet 2200 Series PCL'; dok.PrintToPrinter(1,false,0,0); Response.Write("alert('Printing report has done!')"); Client-Side still don't get know how??? :(

              E Offline
              E Offline
              enjoycrack
              wrote on last edited by
              #6

              At the client-side, you dont need to do anything, just call window.print() method and Internet Explorer will do the rest for you.... So it'll pop up an printing dialog like when you click on Print icon ... << >>

              A 1 Reply Last reply
              0
              • E enjoycrack

                At the client-side, you dont need to do anything, just call window.print() method and Internet Explorer will do the rest for you.... So it'll pop up an printing dialog like when you click on Print icon ... << >>

                A Offline
                A Offline
                albCode
                wrote on last edited by
                #7

                Yes, i use that method until i do not change way to print thanks for ur advice :)

                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