void loadReportButton_Click(object sender, RoutedEventArgs e)
        {
            ReportPreviewModel model = new ReportPreviewModel {
                ServiceUri = "../DemoReportService.svc",
                ReportName = "EUDReport"
            };

            preview.Model = model;
            model.CreateDocument();
        }
示例#2
0
        public MainPage()
        {
            ThemeManager.ApplicationThemeName = "Office2007Black";
            InitializeComponent();
            ReportPreviewModel model = new ReportPreviewModel("../ReportService.svc");

            model.ReportName = "CustomizeParameterEditorSample.Web.OrdersReport";
            model.CustomizeParameterEditors += model_CustomizeParameterEditors;
            preview.Model = model;
            model.CreateDocument();
        }
示例#3
0
        void InitializeReport()
        {
            ReportPreviewModel model = new ReportPreviewModel("../ReportService1.svc");

            model.ReportName       = "E3428.Web.XtraReport1";
            documentPreview1.Model = model;

            // set Default Parameter value on the client-side
            model.Parameters["OrderId"].Value = 10248;

            model.CreateDocument();
        }
示例#4
0
        void ShowProducts()
        {
            var model = new ReportPreviewModel {
                ServiceUri = "../ReportService.svc",
                ReportName = "Reports.ProductReport"
            };
            var window = new DocumentPreviewWindow {
                Model = model
            };

            window.Show();
            model.CreateDocument();
        }