Моя программа создает, затем сохраняет и закрывает новый файл Excel (работает нормально).
Код: Выделить всё
sheet.SaveCopyAs(path);
sheet.Saved = true;
sheet.Close(true, misValue, misValue);
excel.Quit();
Код: Выделить всё
DialogResult dr = MessageBox.Show("Open new file?", "text", MessageBoxButtons.YesNo);
{
if (DialogResult == DialogResult.Yes)
{
Process.Start(path);
}
else if (DialogResult == DialogResult.No)
{
this.Close();
}
Я пробовал с дополнительной кнопкой в форме
Код: Выделить всё
private void button4_Click(object sender, EventArgs e)
{
Process.Start(path);
}
Подробнее здесь: https://stackoverflow.com/questions/528 ... lt-c-sharp
Мобильная версия