public PageViewModel() { ReportPreviewModel = new ReportServicePreviewModel("../ReportService1.svc") { ReportName = "SilverlightApplication15.Web.MasterReport, SilverlightApplication15.Web" }; RecreateDocument = new DelegateCommand(ReportPreviewModel.CreateDocument); }
public MainPageViewModel() { PreviewModel = new ReportServicePreviewModel("../ReportService.svc") { ReportName = "PreviewClickSample.Web.XtraReport1, PreviewClickSample.Web", }; PreviewModel.PreviewMouseMove += PreviewModel_PreviewMouseMove; PreviewModel.PreviewClick += PreviewModel_PreviewClick; }
public MainPageViewModel() { PreviewModel = new ReportServicePreviewModel { ServiceUri = "../ReportService1.svc", ReportName = "SilverlightApplication1.Web.XtraReport1, SilverlightApplication1.Web" }; ClearDocumentCommand = new DelegateCommand(ExecuteClearDocumentCommand, CanExecuteClearDocumentCommand); CreateDocumentCommand = new DelegateCommand(ExecuteCreateDocumentCommand); }
public MainPageViewModel() { _previewModel = new ReportServicePreviewModel() { ServiceUri = "../NorthwindReportService.svc", ReportName = "Reports.ProductReport" }; _categorySubmitCommand = new DelegateCommand <object>(CategorySubmitted); _categories = new ReadOnlyCollection <string>(new string[] { "Beverages", "Condiments", "Seafood" }); }
public void ShowPreview(string serviceUri, string reportName) { ReportServicePreviewModel model = new ReportServicePreviewModel(serviceUri); model.ReportName = reportName; DocumentPreviewWindow preview = new DocumentPreviewWindow() { Model = model }; model.CreateDocument(); preview.ShowDialog(); }