CGXFormulaSheet::RangeToText
static LPCTSTR RangeToText(const CGXRange& rg, LPTSTR buffer, int nSize);
rg
Range cells object
buffer
Pointer to a buffer where the result string should be stored.
nSize
Size of the buffer.
Remarks
Converts a CGXRange object, e.g. CGXRange(1,1,5,3) into a range specifier, e.g. 'A1..C5'.
Please note that the range object must not be a row, column or table range. Don't use SetRows(), SetCols() or SetTable() for specifying the range. Only plain cell ranges are possible.
Example:
CString s;
CGXFormulaSheet::RangeToText(CGXRange(1,1,10,4), s.GetBuffer(20), 20);
s.ReleaseBuffer();