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. ReportViewer Export to Excel Numbers Formatted as Text

ReportViewer Export to Excel Numbers Formatted as Text

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
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.
  • M Offline
    M Offline
    Member 4382232
    wrote on last edited by
    #1

    Hi, I have a local report running in asp.net 2 reportviewer. When I use the export to excel functionality of the reportviewer control, the numbers are exported as text in excel and I can not apply excel functions on the number fields. Do you know if there is a certain format I can use for excel to know its a number field. I used =FormatNumber(Fields!Balance.Value) AND =Format(Fields!Balance.Value,"### ### ##0.00") AND =Format(Fields!Balance.Value,"###,###,##0.00") none working. I removed the format all together and it still didn't make a difference. Please assist

    I 1 Reply Last reply
    0
    • M Member 4382232

      Hi, I have a local report running in asp.net 2 reportviewer. When I use the export to excel functionality of the reportviewer control, the numbers are exported as text in excel and I can not apply excel functions on the number fields. Do you know if there is a certain format I can use for excel to know its a number field. I used =FormatNumber(Fields!Balance.Value) AND =Format(Fields!Balance.Value,"### ### ##0.00") AND =Format(Fields!Balance.Value,"###,###,##0.00") none working. I removed the format all together and it still didn't make a difference. Please assist

      I Offline
      I Offline
      IsmirHarambasic
      wrote on last edited by
      #2

      Did you use CDec(Fields!Balance.Value)

      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