SqlDataSource set programmatically asp MVC

2 posts, 0 answers
  1. KAMIL
    KAMIL avatar
    5 posts
    Member since:
    Aug 2014

    Posted 08 Oct 2014 Link to this post

    Hey,

    I'm trying to find way how to set up datasource connection string programmatically. I have report .trdx created (works for hardcoded connection string) and I have few of mysql databases with the same structure. I need ability to set connection string each time before run report. Is there any way to do this for web application? Im trying with deserialization of report and set connection but i can't see any way to pass Report object into report view.
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 10 Oct 2014 Link to this post

    Hi Kamil,

    Please test using the approach suggested in the Changing the connection string dynamically according to runtime data KB article. Notice that Telerik.Reporting.Report objects are passed to viewers/ReportProcessor via an InstanceReportSource. For more details, please refer to the Report Sources article.


    I hope the above information is helpful.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top