|
엑셀에 저장시 아래의 팁으로 저장을 했습니다.
저장한 내용을 다시 읽어 오려고 하는데 컴포넌트 사용하지 않고 읽어오려면
어떻게 해야 하는지요? 아래의 팁을 변형해서 읽어 올수가 있나요?
WORD CXlsBof[6] = {0x809, 8, 0, 0x10, 0, 0};
WORD CXlsEof[2] = {0x0A, 0};
WORD CXlsLabel[6] = {0x204, 0, 0, 0, 0, 0};
WORD CXlsNumber[5] = {0x203, 14, 0, 0, 0};
WORD CXlsRk[5] = {0x27E, 10, 0, 0, 0};
void __fastcall XlsBeginStream(TStream *XlsStream, const WORD BuildNumber)
{
CXlsBof[4] = BuildNumber;
XlsStream->WriteBuffer(CXlsBof, sizeof(CXlsBof));
}
... 중략.
void __fastcall XlsWriteCellLabel(TStream *XlsStream, const WORD ACol, const
WORD ARow, const AnsiString AValue)
{
WORD L = AValue.Length();
CXlsLabel[1] = 8 + L;
CXlsLabel[2] = ARow;
CXlsLabel[3] = ACol;
CXlsLabel[5] = L;
XlsStream->WriteBuffer(CXlsLabel, sizeof(CXlsLabel));
XlsStream->WriteBuffer(AValue.c_str(), L);
}
|