I am working on a report and I need to add a column to one of my datasets and to the RPT file, but when I try to change the dataset, I get an error that the specified table does not exist. When I look in the code, it looks like the table used for this purpose was originally used, but this approach was canceled, and now it is done using the DataSet in the code that is attached to the report.
My problem is that I need to add this new column to the report, and I cannot force the data to be processed in such a way that I can drag the new field into the report, because I cannot find the necessary fragment of the DataSet, because it does not exist, as he did earlier, and now in the DataSet code he takes a place.
Can anyone point me in the right direction how to do this?
UPDATE: This is about how my dataset gets into the Crystal Report.
private Sub ShowReport() Dim dsStatsForPlanned As DataSet = Nothing dsStatsForPlanned = DirectCast(Session(CreateSessionKey()), DataSet) plannedProductRpt.SetDataSource(dsStatsForPlanned) End Sub
I added an additional field that I need in the DataSet included in Session, but I try to use Designer to get this additional field in the report, and when I try to update or change the data source, Designer reports that the table does not exist, apparently because that this table exists only in memory and does not bind directly to the SQL table.
source share