일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- compare
- atmega328
- Binary
- sensor
- Gradient
- digitalRead
- wpf
- SERIAL
- 3D
- Read
- Gaussian
- edge
- stream
- file access
- aduino
- UNO
- memory
- c++
- Unity
- mfc
- subpixel
- flutter
- public
- Pointer
- Encapusulation
- parameter
- Android
- Contour
- Class
- APP
- Today
- Total
목록xls (3)
폴크(FOLC)

# xls 파일에 Local Storage 에 있는 Image 를 Load 해서 추가한다. > 추가하는 이미지의 크기를 파라미터로 입력할 수 있다. # 관련 소스 코드 > using Excel = Microsoft.Office.Interop.Excel; > Excel.Range PositionXY = (Excel.Range)workSheet.Cells[Row, Col]; > workSheet.Shapes.AddPicture(strSaveFileFullPath, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, PositionXY.Left, PositionXY.Top, 100, 100);

# 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, Sys..

# Excel 파일로 데이터를 연동 > Excel 관련 Reference 를 연결시키면 파일 저장 및 열기를 손 쉽게 진행 한다. # 솔루션 탐색기 - 참조 - COM - Excel 를 검색 > 설치되어있는 Excel 버전에 따라서 Object Library 번호가 다르다. # using Excel = Microsoft.Office.Interop.Excel; # SaveFileDialog saveFile = new SaveFileDialog(); > saveFile.Filter = "Excel Files|*.xls"; > saveFile.Title = "Save Excel File"; > if (saveFile.ShowDialog() == DialogResult.OK) { Excel.Application..