示例#1
0
        private void btnSaveAndPrint_Click(object sender, RoutedEventArgs e)
        {
            var contractId = SaveContract();

            try {
                var path = WordHelper.ContractExport(contractId);

                Process.Start(path);
            } catch (Exception exception) {
                System.Windows.Forms.MessageBox.Show(exception.Message, @"Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }