Hello,
With Spread 8 for COM there is no direct way to save a particular sheet or a group of rows to Excel. To achieve this you may use a work around where you can use a hidden Spread and copy the required data to it and export this to Excel.
With Spread 8 suppose if you want to export only 6 rows and 3 columns data to Excel you can do something like
Dim handle As OLE_HANDLE
Dim buffLen As Long
handle = fpSpread1.SaveBlockToBuffer(1, 1, 3, 6, buffLen, True, True)
fpSpread2.LoadBlockFromBuffer 1, 1, 3, 6, handle, buffLen
' FpSpread2 is hidden Spread
FpSpread2.ExportToExcel("C:\MyFile.xls")
You may use the above code to copy whole sheet to another sheet in another Spread control and then export it to Excel.
Thanks,
Deepak Sharma