Skip to Content
Nov 26, 2019 at 08:41 AM

DataSourceException in some case



I have a complex case with error : "DataSourceException :La table BTS est introuvable.... Impossible de trouver la table."

In english : "Table BTS was not found .... Can not find the table".

We have this error in the last version of our program and we can not find what change can produce this error (nothing change in our printing code).

Our report works fine crystal report designer, the preview can display data and there is no problem.

But in our code, when we make a reportDocument.ExportToDisk or ExportToStream there is the error.

We already try to update crystal report but there is no change.

We have two versions of our program, one in C# in windows form with a client part and server part (the server part load report and this is in this part that we have error). The other version is web in asp, javascrip and angular. In the web part, the crystal report viewer is hable to display data but can not export to pdf ... I think that it is for the same reason. The server part is used by the web version and the client version.

Another case who work is when we create a report with a dataset, when we do like this everything works. It is only with report with direct sql connexion that we have problems.

It is like something block the SQL connection to crystal report and that can maybe explain the reason why crystal don't see the table. Have you an idea of whitch case display this error?

Thank you.