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. need help for print the webpage content

need help for print the webpage content

Scheduled Pinned Locked Moved ASP.NET
csharphelp
3 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.
  • S Offline
    S Offline
    sPaudel
    wrote on last edited by
    #1

    HI all, I need a help for printing the content of the page displayed in the webpage using vb.net Can anybody help I will be very very pleased if i get answer

    P S 2 Replies Last reply
    0
    • S sPaudel

      HI all, I need a help for printing the content of the page displayed in the webpage using vb.net Can anybody help I will be very very pleased if i get answer

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      Printing on the client? You can just get them to hit the print button in the browser... Also, you can set css styles with a media of 'print' that will control how your page is displaying the print preview.

      1 Reply Last reply
      0
      • S sPaudel

        HI all, I need a help for printing the content of the page displayed in the webpage using vb.net Can anybody help I will be very very pleased if i get answer

        S Offline
        S Offline
        Suresh Pirsquare
        wrote on last edited by
        #3

        I hope the following article may help u out Ever wanted to print a DataGrid alone from an ASP.NET Web page? Put an tag inside the tag does the trick. Here are the steps involved: 1. Enclose the tag inside the

        tag. 2. Write a JavaScript function which takes care of printing the content from

        tag. Here's an example: function CallPrint(strid) { var prtContent = document.getElementById(strid); var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0'); WinPrint.document.write(prtContent.innerHTML); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); prtContent.innerHTML=strOldOne; }

        ..... ..... .....

        Everything Is Possible!

        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