Why do I get “Database logon failed” in Crystal Reports when using .NET object as datasource?

后端 未结 12 2219
故里飘歌
故里飘歌 2020-12-29 14:45

I am creating a simple report using a .NET object from my project as datasource, using SetDatasource() method. However, when I run the report I get \"Database l

12条回答
  •  孤城傲影
    2020-12-29 15:02

    Mine did it when I was sending in a DataSet instead of a DataTable.

    ReportDocument.SetDataSource(dataset.Tables[0]);

提交回复
热议问题