about the definition of dataset in rdlc RRS feed

  • Question

  • User-86041214 posted


    I meet a problem when design a dataset of rdlc.

    The followng is the code snippet I used

    namespace LibraryDataSet
        /// <summary>
        ///DataSet Format
        /// </summary>
        public class FRATData
            public string ID{ get; set; }
            public string ProductID{ get; set; }
            public string ProductName{ get; set; }
            public string Address{ get; set; }
            public string OrderID{ get; set; }

    When I open a new *.rdlc file , and add new dataset, I add an reference of above namespace to my project, and then , the vs2012

     seems not get the dataset of upper namespace. It seems strange, and I dno't know why.

    My project is created by VS2012, and it is web project, *.aspx.

    When I create rdlc report, and hope to add dataset, the dataset will not include the above namespace, even when I

    choose a Data Source Type, there is not any option for object, so it can not load dataset from namespace,

    or library.Is there any way or data the solve the problem 

    thanks a lot.

    Tuesday, December 3, 2013 8:08 PM


  • User-86041214 posted

    I found the definition to get the dataset is different between console and webform.

    In webform, it needs to be following its new object type style. Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 11, 2013 3:35 AM

All replies