How to create report (RDLC) without database?

后端 未结 5 2018
梦毁少年i
梦毁少年i 2020-12-29 05:02

Problem

When you create a report (RDLC) the datasource seems to be only this or that database. Is there any way to convince VS to establish a link to memory data s

5条回答
  •  忘掉有多难
    2020-12-29 05:40

    I recently wrote a blog post on creating a reporting assembly and using it in a project. My reports accept a list of my classes as a datasource and dont read from the DB themselves.

    If you have a look here:

    http://wraithnath.blogspot.com/2011/02/visual-studio-2010-report-viewer-object.html

    it should help. Basically you create a class library containing the datasources as VS 2010 has a real problem detecting object datasources. It works like 20% of the time which is why i decided to do it this way.

    N

提交回复
热议问题