250x250
Recent Posts
Recent Comments
쑤쑤_CS 기록장
c# datagridview to excel export, winform excel 추출, workbook 관련 정리 본문
IT 지식 기록/반도체 SW
c# datagridview to excel export, winform excel 추출, workbook 관련 정리
(╹◡╹)_ 2021. 4. 13. 16:25728x90
Microsoft Office Excel 워크시트를 만들고 표시하는 코드
Visual C#, Windows, .NET Framework
using excel = Microsoft.Office.Interop.Excel;
정보를 Excel로 내보내는 메서드
Add 메서드 : 특정 템플릿을 지정하기 위한 선택적 매개 변수
인수가 전송되지 않으면 Add는 기본 템플릿을 사용하며 새 통합 문서를 만든다.
var excelApp = new excel.Application();
excelApp.Workbooks.Add();
- Create a new, empty workbook and add it to the colleciton returned by property workbooks
- The new workbook becomes the active workbook
- Add has an optional parameter for specifying a particular template
- Because no argument is sent is this example, Add creates a new workbook
excel.Worksheet workSheet = (excel.Worksheet)excelApp.ActiveSheet;
- This example uses a single workSheet.
- Teh explicit type casting is removed in a later procedure
[ing]
참고
728x90
'IT 지식 기록 > 반도체 SW' 카테고리의 다른 글
TeeChart 에 대한 기본 이해 (0) | 2021.04.27 |
---|---|
c#_윈폼, winform, windows form 프로젝트 시작하기 (0) | 2021.04.09 |
반도체 생태계 _반도체 기업 형태, 파운더리, 메모리 정리 (0) | 2021.04.07 |
FCM (0) | 2021.04.06 |
EUV 노광기술 (0) | 2021.04.05 |
Comments