|
void __fastcall TMDIChild1::SpeedButton2Click(TObject *Sender)
{
Variant xl, sheet;
////////////////////////////////////////////////////////////////////////////
//
// XLS 실행
////////////////////////////////////////////////////////////////////////////
xl = CreateOleObject("Excel.Application");
xl.OlePropertySet("Visible", True);
sheet = xl.OlePropertyGet("WorkBooks").OlePropertyGet("WorkSheets").OlePropertyGet("Sheet1");
sheet.Cells[1,1] = "won";
sheet.Cells[1,2] = "yeong";
xl = Unassigned;
}
이렇게 했는데 뭐가 잘못인지 좀 봐주세요
|