connection string

Stimulsoft Reports.NET discussion
Post Reply
malavi
Posts: 4
Joined: Tue Feb 19, 2008 12:57 am
Location: iran

connection string

Post by malavi »

How can I pass Connection String to report from code in ASP.Net
thanks in advance
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

connection string

Post by Edward »

This could b done in the following way:

Code: Select all

report.Compile();
(report.CompiledReport.Dictionary.Databases["NameofTheConnectionInDictionary"] as StiSqlDatabase).ConnectionString = "my connection string";
report.Render(false);
stiWebViewer1.Report = report;
Thank you.
malavi
Posts: 4
Joined: Tue Feb 19, 2008 12:57 am
Location: iran

connection string

Post by malavi »

Thanks for your help. Your answer solved my problem.
I have another question:
Sometimes although the report has data but in the web(ASP.Net) it shows nothing, what should I do?
Thanks in advance
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

connection string

Post by Edward »

Please send a test solution to support[at]stimulsoft.com for analysis.

It is difficult to say something definite without viewing the solution.

Thank you.
Post Reply