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. General Programming
  3. C#
  4. Microsoft Reporting Services and C#

Microsoft Reporting Services and C#

Scheduled Pinned Locked Moved C#
csharpdatabasewpfwcfperformance
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.
  • J Offline
    J Offline
    jgrogan
    wrote on last edited by
    #1

    Hi All, I'm trying to build some reporting into an app that I've been working on for a while. The app has a range of class objects in memory, which I want to use to populate the report. In short, I want to push the data to the report at runtime. I have designed the report structure (and created the .rdlc file), added a report viewer and bound the viewer to the report. However, I cannot seem to access the objects in the report for assignment. All net searches return info on binding to database tables, but I've found nothing on binding to class objects. Any ideas / pointers? Thanks in advance, John.

    C 1 Reply Last reply
    0
    • J jgrogan

      Hi All, I'm trying to build some reporting into an app that I've been working on for a while. The app has a range of class objects in memory, which I want to use to populate the report. In short, I want to push the data to the report at runtime. I have designed the report structure (and created the .rdlc file), added a report viewer and bound the viewer to the report. However, I cannot seem to access the objects in the report for assignment. All net searches return info on binding to database tables, but I've found nothing on binding to class objects. Any ideas / pointers? Thanks in advance, John.

      C Offline
      C Offline
      carbon_golem
      wrote on last edited by
      #2

      Open the .rdlc file and you should now have a Data menu item in the VS menu. Click Add New Data Source, select Object and go through the wizard. Scott P

      “It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.” -Edsger Dijkstra

      J 1 Reply Last reply
      0
      • C carbon_golem

        Open the .rdlc file and you should now have a Data menu item in the VS menu. Click Add New Data Source, select Object and go through the wizard. Scott P

        “It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.” -Edsger Dijkstra

        J Offline
        J Offline
        jgrogan
        wrote on last edited by
        #3

        Hi Scott, I can do that, but once a class is in my data sources tab, I can't look at the componants and can't attach them to a part of my report. In addition, a lot of the data items I have are time-series items. I will want to set a date for the report and include only data items up to that date. Is there a way to create a dataset in code and dynamically attach it to the report? Thanks, John.

        C 1 Reply Last reply
        0
        • J jgrogan

          Hi Scott, I can do that, but once a class is in my data sources tab, I can't look at the componants and can't attach them to a part of my report. In addition, a lot of the data items I have are time-series items. I will want to set a date for the report and include only data items up to that date. Is there a way to create a dataset in code and dynamically attach it to the report? Thanks, John.

          C Offline
          C Offline
          carbon_golem
          wrote on last edited by
          #4

          If you have your report active in a tab, you should have a Report menu item. You have to use that to add sources to the particular report. Then you should have them as choices when you put components down on the report. If you didn't know already, you have to pass data in as a generic list even if there's only one object that you're working with. And be warned that the editor is NOT NICE when it comes to revising the report, I can't tell you how many times I've had to manually edit the rdlc file to fix something that the automation broke. Scott P

          “It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.” -Edsger Dijkstra

          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