Programmatically change DB name for .FRX report

Hi folks,

could you please tell me if it is possible to programmatically (C#) change the connection string for a .FRX template?

We would like to provide our customers with some FRX template within our application but since these datasets refer to a MS SQL Server DB, we should provide the possibility to change the Database name...
Can we override the DB name information present in the DataSet?

regards!

Giovanni

Comments

  • edited 5:21AM
    Hello! You can unregister old and to register new datasourse:
    Report r = new Report();
                r.GetDataSource("name").Delete();
    report.RegisterData(dataset, "ds_name");
    

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.