Weird problem with CellInfoRange and Clipboard

Posted by: senglory on 8 September 2017, 1:32 pm EST

  • Posted 8 September 2017, 1:32 pm EST

    The following code gives me a NULL as a value in cellsInClipboard:


    IDataObject data = Clipboard.GetDataObject();


    String[] allFormats = data.GetFormats();


    FarPoint.Win.Spread.CellInfoRange cellsInClipboard;


    if (data.GetDataPresent(typeof(FarPoint.Win.Spread.CellInfoRange)))


    {


    cellsInClipboard = (FarPoint.Win.Spread.CellInfoRange)data.GetData(typeof(FarPoint.Win.Spread.CellInfoRange));


    }


    The row marked with bold is executed but cellsInClipboard remains NULL. How is it possible and how to fix this problem?

  • Replied 8 September 2017, 1:32 pm EST

    senglory -

    The cellsInClipboard is returning the correct CellInfoRange when I copy data from the cells.  Make sure you have the latest maintenance release for the version you have and have not turned off the ClipboardCopy capability of the spread.

  • Replied 8 September 2017, 1:32 pm EST

    This property is read-only as it follows from your documentation. Moreover I have the latest release (dated 8/7/2008 if to look at the setup's file). So the case still opened.

  • Replied 8 September 2017, 1:32 pm EST

    As I said I am not able to reproduce this.  Could you attach a small project showing this behavior along with the steps needed to show it.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels