Search found 3 matches
- Thu Jan 20, 2022 2:43 am
- Forum: Stimulsoft Dashboards.WEB
- Topic: set connectionstring programmatically for stimulsoft dashboard
- Replies: 9
- Views: 3604
Re: set connectionstring programmatically for stimulsoft dashboard
Hi, The database names are the same. Could you please clarify if ((StiMongoDbDatabase)report.Dictionary.Databases["Connection"]).ConnectionString = "" , you mean to set it to an empty string "" or by "" you mean the connection string in our application? Thank ...
- Wed Jan 19, 2022 9:47 am
- Forum: Stimulsoft Dashboards.WEB
- Topic: set connectionstring programmatically for stimulsoft dashboard
- Replies: 9
- Views: 3604
Re: set connectionstring programmatically for stimulsoft dashboard
Hi, I used your code as follows: ((StiMongoDbDatabase)report.Dictionary.Databases["Connection"]).ConnectionString = connectionstring; where the connectionstring is the assigned connection string to the Database. However the following exception is thrown: System.NullReferenceException: 'Obj...
- Wed Jan 19, 2022 6:20 am
- Forum: Stimulsoft Dashboards.WEB
- Topic: set connectionstring programmatically for stimulsoft dashboard
- Replies: 9
- Views: 3604
Re: set connectionstring programmatically for stimulsoft dashboard
Hi,
Can you please provide the relevant piece of code for a Stimulsoft dashboard using MongoDB database too?
Thank you
Can you please provide the relevant piece of code for a Stimulsoft dashboard using MongoDB database too?
Thank you