ASP.NET Webform웹폼 셀 안에 이미지를 엑셀파일로 저장이 가능할까요?
페이지 정보
작성자 빅노우즈 작성일 2020-10-21 15:34 조회 4,510회 댓글 0건본문
관련링크
FpSpread1.Sheets[0].Columns[1].Width = 240;
FpSpread1.Sheets[0].Rows[1].Height = 50;
FarPoint.Web.Spread.ImageCellType imageCell = new FarPoint.Web.Spread.ImageCellType();
string strImageUrl = @"D:\WebPRJ_VS2013\ScreenShot\capture-map.png";
System.Drawing.Image image = System.Drawing.Image.FromFile(strImageUrl);
imageCell.ImageUrl = strImageUrl;
FpSpread1.ActiveSheetView.Cells[1, 1].CellType = imageCell;
FpSpread1.ActiveSheetView.Cells[1, 1].Value = image;
FpSpread1.SaveExcel(@"C:\excelfile.xls");
위 코드 처럼 작성하여 프로그램을 실행하면 캡처한 이미지가 셀안에 나타납니다.
그러나 C:\excelfile.xls에 저장이 불가능 하더군요.
7.0~8.0 버전의 Document에서는 ImageCellType is not exported라는 문구를 보았습니다.
엑셀 파일로 저장이 불가능한거 같은데, 혹시 13.0 버전에서는 엑셀파일로 저장이 가능한가요?
아님 그림파일의 binary 이진코드를 Cell안에 넣어서 저장했을시에, 나중에 엑셀에서 그림파일 형태로
보는 것이 가능한가요?
댓글목록
등록된 댓글이 없습니다.