Hello,
I am currently trying to export a report as a PDF in code (from a WCF Service specifically) and I believe that I have that working correctly, but when i save the report and open it manually it complains and says
"An error has occured while processing Report '':
Unable to connect to database. Please verify that your connection string is valid; in case you use a connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application."
I don't know how to check what the problem is because when I open this same report in a WPF Report Viewer code, it works just fine. If I export the report from that Report Viewer and open it however, I do not get the error.
Basically, I only get this error on this report when in code. I have not gotten this on any other report or in any other fashion on this report.
If anybody knows something that I can check or set to make this work then that would be great.
![]()
I just updated my program and it turns out that the report no longer works in the report viewer. The data works just fine in the Preview but when I actually build the project or try to deploy it, I get the afore mentioned error.
I am currently trying to export a report as a PDF in code (from a WCF Service specifically) and I believe that I have that working correctly, but when i save the report and open it manually it complains and says
"An error has occured while processing Report '':
Unable to connect to database. Please verify that your connection string is valid; in case you use a connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application."
I don't know how to check what the problem is because when I open this same report in a WPF Report Viewer code, it works just fine. If I export the report from that Report Viewer and open it however, I do not get the error.
Basically, I only get this error on this report when in code. I have not gotten this on any other report or in any other fashion on this report.
If anybody knows something that I can check or set to make this work then that would be great.
I just updated my program and it turns out that the report no longer works in the report viewer. The data works just fine in the Preview but when I actually build the project or try to deploy it, I get the afore mentioned error.