internal static void PrintWithFormActionTwoSource(string title, ReportDataSource dataHeader, ReportDataSource items, string layout, ReportParameter[] parameters) { var content = new ReportContent(dataHeader, items, layout, parameters); var dlg = new Window { Content = content, AllowsTransparency = false, Title = "", ResizeMode = System.Windows.ResizeMode.CanResizeWithGrip, WindowState = WindowState.Maximized, }; content.WindowClose = dlg.Close; var vm = new BaseNotify(); vm.MyTitle = title; dlg.DataContext = vm; dlg.ShowDialog(); }
internal static void PrintPreviewWithFormAction(string title, ReportDataSource source, string layout, ReportParameter[] parameters) { //TrireksaApp.Reports.Layouts.Nota.rdlc" var content = new ReportContent(source, layout, parameters); var dlg = new Window { AllowsTransparency = false, Content = content, Title = "", ResizeMode = System.Windows.ResizeMode.CanResizeWithGrip, WindowState = WindowState.Maximized, }; content.WindowClose = dlg.Close; var vm = new BaseNotify(); vm.MyTitle = title; dlg.DataContext = vm; dlg.ShowDialog(); }