using System.Reflection;
string CurAppDir;
CurAppDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);
Reference
目前分類:C# (2)
- Feb 28 Thu 2008 19:59
[C#]抓出目前應用程式的目錄
- Feb 28 Thu 2008 19:17
[C#]C#+Office整合(Visual Studio 2005)
整合?是蝦咪碗糕?
其實就是你可以用寫code的方式去控制Microsoft Office Word Excel...etc
第一步
要去微軟的官網下載Office主要 Interop 組件 (PIA)
就我所知目前有三個版本
分別是Office XP
oxppia.exe