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, but these programs normally don't too 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)
{
Palaso.Reporting.ErrorReport.NotifyUserOfProblem(error.Message, "Could not export the book");
Analytics.ReportException(error);
}
catch (Exception error)
{
Palaso.Reporting.ErrorReport.NotifyUserOfProblem(error, "Could not export the book");
Analytics.ReportException(error);
}
}