silverlight SLViewer Get data from SQL instead Demo.xml

Stimulsoft Reports.Silverlight discussion
Locked
sunrise
Posts: 2
Joined: Tue Dec 25, 2012 9:31 am

silverlight SLViewer Get data from SQL instead Demo.xml

Post 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 ?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post 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.
sunrise
Posts: 2
Joined: Tue Dec 25, 2012 9:31 am

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

Post by sunrise »

You Solved My Problem . Thanks .
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post by HighAley »

Hello.

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

Thank you.
Locked