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 show HTML Editor value in the report

How to show HTML Editor value in the report

Scheduled Pinned Locked Moved ASP.NET
htmldatabasesysadminxmlhelp
2 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.
  • R Offline
    R Offline
    RADSGR
    wrote on last edited by
    #1

    we are using HTML Editor in web page.The user whatever type or paste, the content,same it store in the database.During Inserting data,we are using Server.HTMLEncode. Server.HtmlEncode(HiddEditorContent.Value) content Ex:

    test

    with tag p and /p. and font. SPAN style="BACKGROUND: black; COLOR: white" So,it stores the data like above in the database. After retrieving from the Database,we are using Server.HTMLDecode and showing in the same HTML Editor. It's fine.It's working. I need to display the htmlEditor value in the pdf report. We created the datatable from the database value.Here one of the row value is HTML Editor value.I decode that using server.htmldecode and try to insert into the same Datatable.From there we created the xml.From XMl we are showing the report. But in the report,it's showing the value like

    test

    with tag p and /p. and font. SPAN style="BACKGROUND: black; COLOR: white" It's not decoded.Can u please someone help me

    radsgr

    N 1 Reply Last reply
    0
    • R RADSGR

      we are using HTML Editor in web page.The user whatever type or paste, the content,same it store in the database.During Inserting data,we are using Server.HTMLEncode. Server.HtmlEncode(HiddEditorContent.Value) content Ex:

      test

      with tag p and /p. and font. SPAN style="BACKGROUND: black; COLOR: white" So,it stores the data like above in the database. After retrieving from the Database,we are using Server.HTMLDecode and showing in the same HTML Editor. It's fine.It's working. I need to display the htmlEditor value in the pdf report. We created the datatable from the database value.Here one of the row value is HTML Editor value.I decode that using server.htmldecode and try to insert into the same Datatable.From there we created the xml.From XMl we are showing the report. But in the report,it's showing the value like

      test

      with tag p and /p. and font. SPAN style="BACKGROUND: black; COLOR: white" It's not decoded.Can u please someone help me

      radsgr

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      RADSGR wrote:

      It's not decoded.Can u please someone help me

      In crystal reports ? I don't think that crystal reports can render HTML tags. Try using a thrid party library to do this.


      My Website | Ask smart questions

      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