Posted 19 October 2017, 5:21 am EST
I think the title says it all.
We have a grid that displays some rows with some cells that are spanned.
When we copy it to the clipboard, it copies all the rows and cells properly until it finds a spanned cell. When we paste the copied data into Notepad we only get the data up to the first spanned cell. Everything from the spanned cell and after are not part of the copy.
Here is the code:
gridToUse.Sheets(0).OperationMode = FarPoint.Win.Spread.OperationMode.Normal
' Copy row headers and columns 0 to max.
gridToUse.Sheets(0).SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange
Call gridToUse.Sheets(0).AddSelection(-1, -1, -1, -1)
' Copy to clipboard then clear the selection.
Call gridToUse.Sheets(0).ClipboardCopy(FarPoint.Win.Spread.ClipboardCopyOptions.All)