본문 바로가기

분류 전체보기170

microsoft.office.interop.excel.dll 설치 Visual Studio 에 microsoft.office.interop.excel.dll 참조를 하려는데 어디에도 없음. 내 PC는 엑셀 설치 되어 있는데도 microsoft.office.interop.excel.dll 이 없음. 설치 할때 뭔 옵션이 빠졌었나... 하여간 해당 dll 이 없을 경우 해결 방안은 Nuget! 도구 > Nuget 패키지 관리자 > 솔루션용 Nuget 패키지 관리 여기에서 해당 dll 찾아보기 해서 프로젝트 지정해서 설치 하면 완료. 끝. 2024. 3. 11.
DevExpress XtraGrid에서 데이타 찾기 기능 데브익스프레스 그리드에서 특정값을 찾아서 해당 행을 찾고자 할 경우 사용하는 함수 2개. 1. LocateByValue("FieldName", "찾을값") 2. LocateByDisplayText(시작행, 컬럼명, 찾을값) : 이게 더 잘되는듯. 2024. 1. 8.
ASP.NET MVC FileStreamResult Example ASP.NET MVC FileStreamResult Example. Controller 프로젝트. // /FileStream public FileStreamResult Stream() { var fileContent = new byte[] { Ascii.one, Ascii.Comma, Ascii.two, Ascii.Comma, Ascii.three }; var stream = new MemoryStream(fileContent); var fileStreamResult = new FileStreamResult(stream, mimeType); fileStreamResult.FileDownloadName = "FileStreamExample.csv"; return fileStreamResult; } // F.. 2024. 1. 8.
DevExpress PictureEdit 팝업메뉴 숨김 처리 DevExpress PictureEdit 팝업 메뉴 숨김 처리 하는 방법. private void PictureEdit_PopupMenuShowing(object sender, DevExpress.XtraEditors.Events.PopupMenuShowingEventArgs e) { HashSet unwantedCommands = new HashSet() { StringId.PictureEditMenuFitImage, StringId.PictureEditMenuCut }; for (int i = e.PopupMenu.Items.Count - 1; i >= 0; i--) { DXMenuItem menuItem = e.PopupMenu.Items[i]; if (menuItem.Tag is StringId .. 2024. 1. 8.
반응형