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 print html data without rendering? [modified]

How to print html data without rendering? [modified]

Scheduled Pinned Locked Moved ASP.NET
htmlhelptutorialquestion
4 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.
  • G Offline
    G Offline
    Gaurav Aroraa
    wrote on last edited by
    #1

    Hi have all html data in an hidden field and I want to print it on paper without rendering on the browser can any one tell me the solution. Problem: When tried to print the data it prints like this: <b%>Printing</b> But I want output as Printing

    modified on Wednesday, August 19, 2009 10:41 AM

    A 1 Reply Last reply
    0
    • G Gaurav Aroraa

      Hi have all html data in an hidden field and I want to print it on paper without rendering on the browser can any one tell me the solution. Problem: When tried to print the data it prints like this: <b%>Printing</b> But I want output as Printing

      modified on Wednesday, August 19, 2009 10:41 AM

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      What are you doing, let me know. Are you printing using Window.print. I dont think it prints hidden field. Are you using @media print CSS?? :confused:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      G 1 Reply Last reply
      0
      • A Abhishek Sur

        What are you doing, let me know. Are you printing using Window.print. I dont think it prints hidden field. Are you using @media print CSS?? :confused:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        G Offline
        G Offline
        Gaurav Aroraa
        wrote on last edited by
        #3

        In my case data is very heavy so browser creates a problem while rending so, I withdraw to use Window.Print, now I have all in hidden fields. Also, I tried all in Stringbuilder. Now, problem is how to get all printed with proper formatting.

        A 1 Reply Last reply
        0
        • G Gaurav Aroraa

          In my case data is very heavy so browser creates a problem while rending so, I withdraw to use Window.Print, now I have all in hidden fields. Also, I tried all in Stringbuilder. Now, problem is how to get all printed with proper formatting.

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          Gaurav.Kumar.Arora wrote:

          Also, I tried all in Stringbuilder.

          Without window.print how do you print. This is the only possible way to print. the thing that you can do is use @media print css to those hidden fields and apply correct formatting. :thumbsup:

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          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