As I read this whole thing, I think the approach is all wrong. Here is what I see:
You are using SetDatasource on a table based on a stored proc. However, when executing a stored proc, you need to provide the parameter value first and then it is used to execute the SQL on the back end data. If you pass a datatable to the report, there is no connection to the database, so this is where things get muddled up for me. I’m not sure what NullS does unless it just passes a Null to the stored proc, but if you do not connect to the server through Crystal, then the stored proc cannot execute. All this will result in is data passed in from the datatable.
- Ludek