By using this site you agree to the use of cookies for analytics and personalized content.
I agree Learn More
Stimulsoft Reports.Silverlight FAQ
 
>
1. How to view a report?
2. How to set the localization in viewer?
3. How to enable or disable some export formats?
4. What do I need to install for working with WebViewerSL?
5. How to design a new report?
6. How to load and design a report?
7. How to change the data for preview report?
8. How to set the localization in designer?
1. How to view a report?

Use the following code in PageLoad event of page:

C#

StiReport report = new StiReport();
report.Load("D:\\SimpleList.mrt");
StiWebViewerSL1.Report = report;

VB

Dim Report As New StiReport()
Report.Load("D:\\SimpleList.mrt")
StiWebViewerSL1.Report = Report
2. How to set the localization in viewer?

Copy localization .xml files to the Localization folder in you project and set the Localization property of StiWebViewerSL component as follow:

<cc1:StiWebViewerSL ID="StiWebViewerSL1" runat="server" Localization="en" />
3. How to enable or disable some export formats?

Use the Export properties of StiWebViewerSL control, or this code in PreInit event of page:

C#

StiWebViewerSL1.ShowExportToXps = false;
StiWebViewerSL1.ShowExportToSvg = false;
...

VB

StiWebViewerSL1.ShowExportToXps = False
StiWebViewerSL1.ShowExportToSvg = False
...
4. What do I need to install for working with WebViewerSL?

To do this you must have installed Silverlight 4.
5. How to design a new report?

Use the following code in PageLoad event:

C#

StiReport report = new StiReport();
StiWebDesignerSL1.Report = report;

VB

Dim Report As New StiReport
StiWebDesignerSL1.Report = Report
6. How to load and design a report?

Use the following code in PageLoad event:

C#

StiReport report = new StiReport();
report.Load("Simple_List.mrt");
WebDesignerSL1.Report = report;

VB

Dim Report As New StiReport()
Report.Load("Simple_List.mrt")
WebDesignerSL1.Report = Report
7. How to change the data for preview report?

Change data report can be constructed using the GetPreviewDataSet event. Below is an example:

C#

string appDirectory = HttpContext.Current.Server.MapPath(string.Empty);
DataSet data = new DataSet();
data.ReadXml(appDirectory + "\\Data\\Demo.xml");
data.ReadXmlSchema(appDirectory + "\\Data\\Demo.xsd");
e.PreviewDataSet = data;

VB

Dim AppDirectory As String = HttpContext.Current.Server.MapPath(string.Empty)
Dim Data As New DataSet()
Data.ReadXml(AppDirectory + "\\Data\\Demo.xml")
Data.ReadXmlSchema(appDirectory + "\\Data\\Demo.xsd")
e.PreviewDataSet = Data
8. How to set the localization in designer?

Copy the localization.xml files to the Localization folder in your project. All languages will be automatically detected in WebDesignerSL. To change the default localization set the following property:

<cc1:StiWebDesignerSL ID="StiWebDesignerSL1" runat="server" Localization="en" />
TwitterTwitterFacebookFacebookRSSRSSLinked inLinked inYoutubeYoutubeStimulsoft BlogStimulsoft BlogViberViberWhatsAppWhatsAppSkypeSkypeTelegramTelegram