We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bind to XlsIO workbook?

Thread ID:

Created:

Updated:

Platform:

Replies:

106798 Jan 25,2013 05:29 PM UTC Jan 29,2013 04:54 PM UTC Silverlight 1
loading
Tags: SpreadsheetControl
Heiko Torner
Asked On January 25, 2013 05:29 PM UTC

I would like to create a new workbook by code using XlsIO. I do this using the MVVM pattern which means my ViewModel (which creates the new workbook) usually has no knowledge of the SpreadsheetControl on the UI. Is it possible to bind the workbook which is displayed by SpreadsheetControl to some kind of "workbook" property of my ViewModel?

TIA
Heiko

Pannir Selvam S [Syncfusion]
Replied On January 29, 2013 04:54 PM UTC

Hi  Heiko,

 

Thanks for using Syncfusion product.

 

It is not possible to bind a workbook into the SpreadsheetControl. However you can import a workbook into Spreadsheet by using ImportFromExcel method as shown below.

 

Code Snippet[C#]:

ExcelEngine engine = new ExcelEngine();

IWorkbook workbook = engine.Excel.Workbooks.Add();

this.spreadSheetControl.ImportFromExcel(workbook);

 

Please let us know if any other queries.

 

Regards,

Pannir


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;