private void btnPrintPreview_Click(object sender, RoutedEventArgs e) { var reportName = "RouteCardReportAr"; if (TabRouteCard.SelectedIndex == 1) { var reportChild = new ReportsChildWindow(PermissionItemName.RouteCardForm.ToString(), MyViewModel.LastTransaction); reportChild.Show(); return; } if (MyViewModel.RouteTypeInt == 9) { reportName = "StyleCostAndEstimatedCost"; } var para = new ObservableCollection <string> { MyViewModel.LastTransaction.ToString(CultureInfo.InvariantCulture) }; var reportViewmodel = new GenericReportViewModel(); reportViewmodel.GenerateReport(reportName, para); }
private void btnPrint_Click(object sender, RoutedEventArgs e) { var reportChild = new ReportsChildWindow("Marker", _viewModel.MarkerHeader.Iserial); reportChild.Show(); }