WinForms윈폼 특정 텍스트가 입력되면 연관된 이미지로 출력
페이지 정보
작성자 graywavve 작성일 2021-02-18 11:45 조회 3,397회 댓글 0건본문
관련링크
안녕하세요.
datatable에 입력된 텍스트를 스프레드에서 출력할땐 이미지로 출력이 가능한지 궁금합니다.
환경은 VBNET 4.6 이고 대략적인 Flow는 다음과 같습니다.
====================================
D/B 데이터를 Datatable로 받고
이를 스프레드Datasource로 넣습니다.
Dim select_rows() As DataRow = db_dt(db_dt_where)
Dim fps_dt As New DataTable
fps_dt = select_rows.CopyToDataTable
스프레드.DataSource = fps_dt
====================================
====================================
기존 Loop를 통한 값 입력 시 셀 이미지 처리
with 스프레드
For i As Integer = 0 To select_rows.Count - 1
Dim img_cell_type As New FarPoint.Win.Spread.CellType.ImageCellType With {
.Style = FarPoint.Win.RenderStyle.Normal,
.TransparencyColor = Color.Black,
.TransparencyTolerance = 20
}
Dim img As System.Drawing.Image = 이미지
.Cells(i, 1).CellType = img_cell_type
.Cells(i, 1).Value = img
Next
.
.
.
감사합니다.
댓글목록
등록된 댓글이 없습니다.