The report runs correctly in Report Designer.Unable to cast object of type 'System.String' to type 'Stimulsoft.Report.Dictionary.StiDataParameter'
Any ideas where I should look?
The report runs correctly in Report Designer.Unable to cast object of type 'System.String' to type 'Stimulsoft.Report.Dictionary.StiDataParameter'
Thanks for the quick response.Andrew wrote:Hello,
This error can occur if the computer from the library are of different versions of our product.
Please check whether the version of the libraries used in your product is the same.
Thank you.
Code: Select all
report.Render(false);
report.ExportDocument(StiExportFormat.Pdf, "report.pdf");
It's only if I call the report.Render() which I need to do in order to create the PDF.Could not load file or assembly 'System.Data.dll' or one of its dependencies. The System cannot find the file specified
My COM wrapper only loads the report and then shows it. It uses the Datasource inside the report so I'm not passing in a Dataset.Aleksey wrote:Hello,
We found some strangeness in work of .NET Framework 4.0. In some cases, the compiled project cannot load the System.Data.dll system library, although the link to the library project is added.
You should do the following to solve this problem:
in start of your application please add the following lines of code:
using System.Data;
....
DataSet ds = null;
This lines of code will be force to load System.Data library in the memory.
Thank you.