Hi,
I am trying to follow the article/sample:
http://es.infragistics.com/community/blogs/damyan_petev/archive/2012/07/27/changing-reports-connection-strings-at-run-time.aspx
However the GetConnection function of the class ReportDbConnectionProvider is never invoked.
I have tried to set breakpoint in the GetConnection method to follow what is happening, but the breakpoint is never reached.
I have set the name of report (WorkSheet.igr) in the following attribute:
<ReportDbConnectionExport(ReportSearchPattern:="WorkSheet")> _ Public Class ReportDbConnectionProvider
How can I intercept the point which the method should have been called when opening the report to debug?
Regards
Kai-Inge
Hello Kai-Inge,
I threw together a sample based on that blog post but I wasn't able to reproduce your issue. The connection provider's GetConnection method is firing when the report is loading in my sample. I've attached it so you can take a look at it.
I wasn't sure what version of Reporting you are using nor which platform you are using Reporting on so I built it against 14.1 Silverlight. If you require a different platform please let me know.
P.S. Please be aware that my sample uses the NORTHWND database which was installed to my C:\ drive. The download for this is here: http://www.microsoft.com/en-us/download/details.aspx?id=23654
Let me know if you have any further questions on this.