I created two buttons that should open Word and Excel . Word opens, but Excel does not open. At first I wanted to open Word and Excel in one button, then I created a separate button. Here is the source code:
private void OpenExcelAndWord_Click(object sender, EventArgs e) { Word.Application wordapp = new Word.Application(); wordapp.Visible = true; } private void buttonExcel_Click(object sender, EventArgs e) { Excel.Application excelapp = new Excel.Application(); excelapp.Visible = true; } Here is the error:
