Bloom.CollectionTab.LibraryListView.exportToWordOrLibreOfficeToolStripMenuItem_Click C# (CSharp) Method

exportToWordOrLibreOfficeToolStripMenuItem_Click() private method

private exportToWordOrLibreOfficeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void exportToWordOrLibreOfficeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                MessageBox.Show(LocalizationManager.GetString("CollectionTab.BookMenu.ExportDocMessage",
                    "Bloom will now open this HTML document in your word processing program (normally Word or LibreOffice). You will be able to work with the text and images of this book. These programs normally don't do well with preserving the layout, so don't expect much."));
                var destPath = _bookSelection.CurrentSelection.GetPathHtmlFile().Replace(".htm", ".doc");
                _model.ExportDocFormat(destPath);
                PathUtilities.OpenFileInApplication(destPath);
                Analytics.Track("Exported To Doc format");
            }
            catch (IOException error)
            {
                SIL.Reporting.ErrorReport.NotifyUserOfProblem(error.Message, "Could not export the book");
                Analytics.ReportException(error);
            }
            catch (Exception error)
            {
                SIL.Reporting.ErrorReport.NotifyUserOfProblem(error, "Could not export the book");
                Analytics.ReportException(error);
            }
        }