The reports weren't designed using a dataset, they were built using TTXs to define the datastructure. I have that code almost verbatim in my project and when I try to run the report via ReportViewer I am prompted with a Login box that asks for username/password for Server: "C:\ttx files\somefile.ttx". The report is using the ttx file as the datasource location. I've tried modifying the report at runtime with:
andCode:customerReport.Database.Tables.Item(0).ApplyLogOnInfo(logOnInfo)
But these changes make no difference. How can I get the report to stop looking for that ttx file?Code:customerReport.DataSourceConnections.Item(0).SetConnection("D:\XSDs\somefile.xsd", "", False)
To give a better idea of how my code looks it's basically exactly like the sample tutorial VB_Win_Data_DataSets where a helper class fills a dataset and then I use SetDataSource(DataSet).




Reply With Quote