I have tried everything on this. My latest attempt is a dataset in the form of an xsd. The data adapter does not need to be created, it is in my project. Though I don't know if I need to tie it to something else in some way. I create the table which contains the data using one button. That is all working well. Table gets created in the tempdb with the correct data and the parameters are all passed correctly. I am trying to fill the dataset before the viewer launches. The crystal report has it's ource location set to the dataset. But the report just comes up empty. Here is the code I am using to attempt to fill the dataset and launch the report viewer.
Code:Private Sub LaunchRptBtn_Click() Handles LaunchRpt.Click Dim ViewerForm As New Form Dim DS As New TempdbDataSet Dim DS_Adapter As New TempdbDataSetTableAdapters.TempdbTableAdapter DS_Adapter.GetData() DS_Adapter.Fill(DS.TempdbTable) ViewerForm = RptViewer ViewerForm.Show() End Sub




Reply With Quote
