locked
report dataset problem RRS feed

  • Question

  • User714838281 posted

    Hi

    i have created one function that returns a DataSet.

    After compile i went to my rdlc file and tryed to add the new dataset... but don't appears...

    What i am doing wrong?

    Thank's in advance

    Marco Branco

    Monday, June 17, 2013 11:41 AM

All replies

  • User-1185172246 posted

    DataSet objects are displayed only if you create a Typed DataSet not a function that returns one. If you want to use business objects as your datasource, then create a class defining your object and then create other class that returns a collection of those objects. Here is a sample of how to do that http://gotreportviewer.com/objectdatasources/index.html

    Pay attention to the last part entitled as "Using object data sources in Web sites"

    Monday, June 17, 2013 1:38 PM
  • User714838281 posted

    But my DataSet is created using one method.

    Sometimes when i design the report it detectes the DataSet retrieved by method, in other times dont retrieve...

    Now, i have two methos

    Dataset Report()

    and 

    dataSet Report(string date)

    and none appears in the design of the report.

    Any idea?

    Tuesday, June 18, 2013 7:51 AM