BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Peter,
Thank you for using Syncfusion Products.
I have a report viewer control on my website. It was
initially setup (bare minimal) by Syncfusion's consultants, and on the
version of my website they did it for it works. But as I have tried
integrating my own reports into the viewer they invariably fail. I have
confirmed that the connection string in the DataSource is correct, and by
watching the connections in SQL Server Profiler, I can tell that the stored
procedure that pulls the data is never called. When I run the report viewer, I first receive the
following JavaScript error: Javascript runtime error: Unable to get property
'HeaderStyleModel' of undefined or null reference (file:
ej.web.all.min.js) |
We were able to reproduce this and have logged defect
report regarding this. A support incident to track the status of this defect
has been created under your account. Please log on to our support website to
check for further updates https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents |
After choosing to continue, the page with the report
viewer loads and it gives me the following error: Datasource values are empty, Dataset depends on DataSource |
We are unable to reproduce this issue in our end and shared
report has working fine. we suspect this issue is due to failed open your sql
connection. Therefore, Could you please ensure your connection string?. |
Please let us know, if you have any concerns.
Regards,
Soundara Rajan S.
Hi Peter,
Thanks for your update.
We can pass the userid and password with connection string to datasource as shown by below snippet,
Data Source=76.74.153.81;Initial Catalog=AdventureWorks;User Id=username;Password=password |
Also, we can pass the datasource credential in code behind as shown by below code snippet,
//Method will be called when initialize the report options before start processing the report public void OnInitReportOptions(ReportViewerOptions reportOption) { reportOption.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("AdventureWorks", "username", "password")); } |
For your convenience, we have prepared sample with remote database and it can downloaded below location,
http://www.syncfusion.com/downloads/support/forum/118562/RDLDemo-226779082.zip
Please let us know, if you have any queries.
Regards,
Soundara Rajan S.
Hi Peter,
Thanks for your reply and Sorry about inconvenience caused.
I wanted to check in on this and see if there was an update on the javascript error? Using the original project delivered to me, I was able to get the Contact List RDL I attached to hit the database and pull results, but nothing displayed due to that JS Error. (The tool bard showed that there were 634 pages in the report -- correctly -- but where the report would have rendered was just the grey background.) Also, that fact that the original project was able to use this report shows that the connection string variables are correct. There has to be something, like maybe another DLL that is in the main project and not in the test project, that is interfering with this? Are there any known compatibility issues with the report viewer? | This is not compatibility issue and that the issue raised due to report borders. Also, we have logged issue report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents |
Please let us know, if you have any queries.
Regards,
Soundara Rajan S.