Page 1 of 1

connection string

Posted: Tue Feb 19, 2008 1:01 am
by malavi
How can I pass Connection String to report from code in ASP.Net
thanks in advance

connection string

Posted: Tue Feb 19, 2008 1:38 am
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.

connection string

Posted: Tue Feb 19, 2008 3:33 am
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

connection string

Posted: Wed Feb 20, 2008 6:04 am
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.