일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- stream
- mfc
- parameter
- SERIAL
- wpf
- digitalRead
- APP
- flutter
- Gradient
- 3D
- atmega328
- Read
- Pointer
- c++
- Unity
- file access
- Android
- aduino
- Encapusulation
- Class
- UNO
- compare
- sensor
- edge
- public
- memory
- Contour
- Binary
- subpixel
- Gaussian
Archives
- Today
- Total
폴크(FOLC)
C# 테크닉 - xls 파일에 Image 추가 본문
728x90
반응형
# xls 파일에 Local Storage 에 있는 Image 를 Load 해서 추가 하려면 Picture 형태의 정보를 이용한다.
> 추가하는 이미지의 크기를 변경할 수 있다. ( LockAspectRatio )
# 관련 소스 코드
> using Excel = Microsoft.Office.Interop.Excel;
> Excel.Range PositionXY = (Excel.Range)workSheet.Cells[Row, Col];
> Excel.Pictures excelPictures = workSheet.Pictures(Type.Missing) as Excel.Pictures;
> Excel.Picture pictureInfo = excelPictures.Insert(strFilePath, System.Type.Missing);
> pictureInfo.ShapeRange.LockAspectRatio = Microsoft.Office.Core.MsoTriState.msoCTrue;
> pictureInfo.ShapeRange.Width = 170;
> pictureInfo.ShapeRange.Height = 170;
> pictureInfo.Left = Convert.ToDouble(PositionXY.Left);
> pictureInfo.Top = PositionXY.Top;
728x90
반응형
사업자 정보 표시
사업자 등록번호 : -- | TEL : --
'C#, WF, WPF(.NET) > C#, WF, WPF(.NET) 테크닉' 카테고리의 다른 글
C# 테크닉 - xls 파일에 Local Image 추가하기 (0) | 2021.10.11 |
---|---|
C# 테크닉 - Image 파일 다운로드 (0) | 2021.09.27 |
C# 테크닉 - TrayIcon (0) | 2021.09.07 |
WF 테크닉 - xls 파일 연동 (0) | 2021.08.03 |
C# 테크닉 - 크롤링 (0) | 2021.07.27 |