Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
Changing Reports’ Connection Strings at Run-Time
posted

Hi,

I am trying to follow the article/sample:

http://ko.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

Parents
  • 34510
    Offline posted

    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

    SilverlightApplication1.zip
Reply Children
No Data