Simple Creation of a file

Originally Posted 24 April 2014, 11:07 am EST

  • Originally Posted 24 April 2014, 11:07 am EST

    Hi All,

    I was wondering if I could trouble someone for some assistance using SpreadRT via a WinRT Component.
    I've added a reference to SpreadRT 7 v3 and tried to use the instructions here to create a workbook: http://helpcentral.componentone.com/nethelp/ExcelWinRT/#!Documents/step2of4addingcontenttoac1xlbook.htm

    Unfortunately, I can't find the namespace or classes referred to. I can find a 'GrapeCity' namespace with 'Spreadsheet' and 'Xaml' within them, but none of them seem to contain the classes needed to create a book.

    Any pointers/help greatly appreciated.

    Kind Regards,

    Doug
  • Marked as Answer

    Reply

    Hello Doug,

    Here is the code to create and add a sheet to SpreadRT programmatically:

    gcSpreadSheet1.Sheets.Add(new GrapeCity.Xaml.SpreadSheet.Data.Worksheet());


    I would suggest you to please go through the documentation here on more information on this.
    http://helpcentral.componentone.com/NetHelp/SpreadWinRT/webframe.html#winrtwelcome.html


    Thanks,
    Deepak Sharma
Need extra support?

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

Learn More

Forum Channels