...
string userPath = string.Format("WinNT://{0}/{1}", TargetServer, UserName);
using (DirectoryEntry userEntry = new DirectoryEntry(userPath))
{
2. 이전 비밀번호를 몰라도 새 비밀번호로 리셋하고 싶을 경우
{
포스트를 열심히 올리고자 마음 먹었지만
전혀 올리지 못 하고있었다. (마음만 앞섰을 뿐이고.. 그리고 귀찮았을 뿐이고..)
뭐 암튼 간만에 포스팅을 한다.
c#에서 DataTable 클래스에서 DataTable끼리의 Merge와 Sort가 있다. (그 밖에도 많겠지...)
대략 소스와 주석으로 설명을 대신하고자 한다.
1. Visual Studio 2008 실행한다. (VS 2005도 특별히 틀릴것 같진 않다.)
2. 프로젝트를 열거나 생성한다. (C#.NET 프로젝트(클래스라이브러리 또는 응용프로그램 등등)
3. 아래 참조 추가를 한다. (아마 오피스가 설치되어있어야 할것 같다.)
ApplicationClass app = new ApplicationClass();
Presentation ppt = app.Presentations.Open(open.FileName, MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoFalse);
for (int i = 0; i < ppt.Slides.Count; ++i)
{
ppt.Slides[i + 1].Export(@"E:\Test\VS2008\Winform\TestPPT\TestPPT\bin\Debug\" + i + ".png", "PNG", (int)ppt.Slides[i + 1].Master.Width, (int)ppt.Slides[i + 1].Master.Height);
}
ppt.Close();
app.Quit();
}