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. Help me!!! Printing Facility in ASP.Net

Help me!!! Printing Facility in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdesigntutorial
10 Posts 3 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.
  • P Offline
    P Offline
    ppllmm17
    wrote on last edited by
    #1

    Hi, I'm having problem in my project. I want to know, how to implement Printing facility in ASP.Net. I just found only WindowBase (I'm looking for Web.UI). Pls someone know, provide me. Thanks, PLM

    M 1 Reply Last reply
    0
    • P ppllmm17

      Hi, I'm having problem in my project. I want to know, how to implement Printing facility in ASP.Net. I just found only WindowBase (I'm looking for Web.UI). Pls someone know, provide me. Thanks, PLM

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      I'm not sure I understand you here. If you're building with ASP.NET I'm assuming you're making a web application for browsers as clients. If so, wouldn't the browser's File->Print menu handle printing? What am I missing?

      P 1 Reply Last reply
      0
      • M Mike Ellison

        I'm not sure I understand you here. If you're building with ASP.NET I'm assuming you're making a web application for browsers as clients. If so, wouldn't the browser's File->Print menu handle printing? What am I missing?

        P Offline
        P Offline
        ppllmm17
        wrote on last edited by
        #3

        Hi Mike, Browser in ASP can't call File cause File-> Print Menu is Window base. You're right, I have to use 'System.Web.HttpBrowserCapabilities'. But I didn't get it right now. Still trying. If you have any clue, provide me. Thanks, PLM

        M 1 Reply Last reply
        0
        • P ppllmm17

          Hi Mike, Browser in ASP can't call File cause File-> Print Menu is Window base. You're right, I have to use 'System.Web.HttpBrowserCapabilities'. But I didn't get it right now. Still trying. If you have any clue, provide me. Thanks, PLM

          M Offline
          M Offline
          Mike Ellison
          wrote on last edited by
          #4

          I guess I still don't understand what you're trying to do. Are you looking to implement a "Print" hyperlink of some sort in your web page? What is the result you want?

          P 1 Reply Last reply
          0
          • M Mike Ellison

            I guess I still don't understand what you're trying to do. Are you looking to implement a "Print" hyperlink of some sort in your web page? What is the result you want?

            P Offline
            P Offline
            ppllmm17
            wrote on last edited by
            #5

            Actually, I want to print out my data over Grid view. (ASP Grid Control) Let me explain this portion, I query data from Oracle server and Fill these DataSet to grid view. I don't want to use Crystal Report. I want to use IE's default printing. If you have experience in that, pls feed me back. Thanks, PLM

            M 1 Reply Last reply
            0
            • P ppllmm17

              Actually, I want to print out my data over Grid view. (ASP Grid Control) Let me explain this portion, I query data from Oracle server and Fill these DataSet to grid view. I don't want to use Crystal Report. I want to use IE's default printing. If you have experience in that, pls feed me back. Thanks, PLM

              M Offline
              M Offline
              Mike Ellison
              wrote on last edited by
              #6

              Well, you can create a "Print Me" link on the page using the client-side javascript window.print() method, like this:

              <A HREF="javascript::window.print()"> Print this Data</A>

              If you want the page to automatically print upon loading, you can use window.print() method in the onLoad event of the tag:

              ...contents to be printed when the page loads...

              A 1 Reply Last reply
              0
              • M Mike Ellison

                Well, you can create a "Print Me" link on the page using the client-side javascript window.print() method, like this:

                <A HREF="javascript::window.print()"> Print this Data</A>

                If you want the page to automatically print upon loading, you can use window.print() method in the onLoad event of the tag:

                ...contents to be printed when the page loads...

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

                using this the printer dialogue will appear is there a way to print automatically without it appear heba

                M 1 Reply Last reply
                0
                • A ananas_hh

                  using this the printer dialogue will appear is there a way to print automatically without it appear heba

                  M Offline
                  M Offline
                  Mike Ellison
                  wrote on last edited by
                  #8

                  Well, none that I am familiar with; but even if I were, I think I would still allow my users to work with the printer dialog. I like giving them the options to print to different printers at run-time if they wish. Just curious - what is the reason you don't want them to see the printer dialog?

                  A 1 Reply Last reply
                  0
                  • M Mike Ellison

                    Well, none that I am familiar with; but even if I were, I think I would still allow my users to work with the printer dialog. I like giving them the options to print to different printers at run-time if they wish. Just curious - what is the reason you don't want them to see the printer dialog?

                    A Offline
                    A Offline
                    ananas_hh
                    wrote on last edited by
                    #9

                    i'm making a lab system, the doctor print the tests of each patient, i guess it will be boring to open the printer dialogue each time he wants a test!!!!!, beside the already implemented system print automaticly when clicking print heba

                    M 1 Reply Last reply
                    0
                    • A ananas_hh

                      i'm making a lab system, the doctor print the tests of each patient, i guess it will be boring to open the printer dialogue each time he wants a test!!!!!, beside the already implemented system print automaticly when clicking print heba

                      M Offline
                      M Offline
                      Mike Ellison
                      wrote on last edited by
                      #10

                      Okay - I did a simple Google Groups search using the following search text: "internet explorer print without dialog" and found several responses with approaches that may work. See if that helps you.

                      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