Page 1 of 1

silverlight SLViewer Get data from SQL instead Demo.xml

Posted: Tue Dec 25, 2012 9:46 am
by sunrise
in "WCF_SLViewer and WCF_SLViewer.Web" Sample , How can load Data from SQL Database instead of Demo.xml .
is it possible in Stimulsoft Silverlight Report Viewer to load Data from SQL Database and Show it on Client Side ?
Can you Send me a Sample ?

Re: silverlight SLViewer Get data from SQL instead Demo.xml

Posted: Wed Dec 26, 2012 11:21 am
by HighAley
Hello.

You should use next code:

Code: Select all

report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Connection", newConnectionString));
Thank you.

Re: silverlight SLViewer Get data from SQL instead Demo.xml

Posted: Wed Dec 26, 2012 1:56 pm
by sunrise
You Solved My Problem . Thanks .

Re: silverlight SLViewer Get data from SQL instead Demo.xml

Posted: Thu Dec 27, 2012 6:02 am
by HighAley
Hello.

We are always glad to help you.
Let us know if you will need any additional help.

Thank you.