m_excel.OpenWorkBook(sFileName, sSheetDrawingList);
// Get drawing info
int iStartRow = 0, iStartCol = 0, iRowNum = 0, iColNum = 0;
_ExRange range;
_ExRange usedRange;
usedRange.AttachDispatch(m_excel.GetSheet().GetUsedRange());
iStartRow = usedRange.GetRow();
iStartCol = usedRange.GetColumn();
range.AttachDispatch(usedRange.GetRows()) ;
iRowNum = range.GetCount();
range.AttachDispatch(usedRange.GetColumns()) ;
iColNum = range.GetCount();
时间: 2024-10-15 19:47:12