Save OpenFileDialog

1.1.1. The initial default directory is the user's temp directory. After the first time any file is opened or saved, the default directory will be whichever directory was last used.

this.openFileDialog.RestoreDirectory = false;

this.openFileDialog.InitialDirectory = Path.GetDirectoryName(newExcelFile);

posted on 2010-05-20 12:04  刘宁Toby  阅读(171)  评论(0编辑  收藏  举报