|
^^ 좋은 답변 정말 감사합니다.
많은 도움이 될것 같습니다.
그럼 수고하시고 환절기 건강 조심하세요~ ^^
외랑 님이 쓰신 글 :
: 은진 아빠 님이 쓰신 글 :
: : 우선 데이터를 원하는 위치에 넣고 하는것은 되었으나....
: : 칼라를 바꾸는 방법을 모르겠습니다.
: :
: : //----------------------------------------------------
: : (*xlSheet).OlePropertyGet("Cells", 6 , "B").OlePropertySet("VALUE" , GetStemLotNo ()); // Stem Lot No.
: : (*xlSheet).OlePropertyGet("Cells", 4 , "O").OlePropertySet("VALUE" , GetMountLotNo()); // Mount Lot No.
: : (*xlSheet).OlePropertyGet("Cells", 6 , "O").OlePropertySet("VALUE" , GetCupLotNo ()); // Cup Lot No.
: : //----------------------------------------------------
: :
: : 데이터를 넣는것은 이런 방식으로 넣었는데....
: : 칼라를 바꾸는 방법은 어떻게 해야 하는지 부탁점 드리겠습니다.
: : 그리고 EXCEL에 사용되는 명령어의 사용법을 어떻게 하면 알수 있는지 궁굼합니다.
: :
: : 첨하는 EXCEL프로그램이라 많이 허접합니다.
: : 많은 조언 부탁드립니다.
:
:
: //-------------------------------------------------------------------------------
: //① 설 명 : Cell에 색상 채우기
: //② 인 수 :
: //③ 리 턴 :
: //-------------------------------------------------------------------------------
: void __fastcall FillColorCell(int row, int col, int ColorIndex)
: {
: try
: {
: Variant cell, column, interior;
:
: cell = xlSheet.OlePropertyGet("Cells", row, col);
: column = cell.OlePropertyGet("Columns");
: interior = column.OlePropertyGet("Interior");
: interior.OlePropertySet("ColorIndex", ColorIndex);
: interior.OlePropertySet("Pattern", 1); //1 - xlSolid
: }
: catch(...)
: {
:
: }
: }
|