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
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: