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.
Unfortunately, activation email could not send to your email. Please try again.

Syncfusion.XlsIO.Portable.dll from 15.2.0.43\Assemblies\.NET Standard 1.2

Thread ID:

Created:

Updated:

Platform:

Replies:

131601 Jul 18,2017 08:37 AM Jul 20,2017 02:18 AM ASP.NET Core 3
loading
Tags: XlsIO
josep
Asked On July 18, 2017 08:37 AM

Hi folks,

I did not find an specific forum for PDF. So I writte in general.
I need to write a netstandard 1.6 lib for using it in WPF and Xamarin. This lib extract cells from xls. This code seems is very straigthforward:

(source: https://www.syncfusion.com/products/file-formats/xlsio)

using (ExcelEngine excelEngine = new ExcelEngine())
{              
	//Open an existing workbook.
	IWorkbook workbook = excelEngine.Excel.Workbooks.Open(@"Sample.xlsx");

	//Access the first worksheet from the workbook instance.
	IWorksheet worksheet = workbook.Worksheets[0];

	//Read/access the value of the cell (B3)
	textBox1.Text = worksheet["B3"].Text;
}

I added
Syncfusion.XlsIO.Portable and Syncfusion.Compression.Portable to my netstandar 1.6 lib but I get this Severity Code Description Project File Line Suppression State

Error CS0012 The type 'Object' is defined in an assembly that is not referenced.
You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.

Which assembly is? I use portable assemblies according https://help.syncfusion.com/file-formats/xlsio/assemblies-required

Cheers

Mathu Mohan Vijayakumar [Syncfusion]
Replied On July 19, 2017 11:14 AM

Hi josep, 
 
We are suspecting that the issue might be occurs due to missing package  "Microsoft.NETCore.Portable.Compatibilityin your project. This package enables the compatibility with portable libraries targeting previous .NET framework assemblies. So we kindly request you to install this package in your project and let us know whether the issue is resolved at your side. 
 
Package manager console command: 
install-package Microsoft.NETCore.Portable.Compatibility 
 
 
Regards, 
Mathu Mohan V A  


josep
Replied On July 19, 2017 11:18 AM

Thanks, It works now


Mathu Mohan Vijayakumar [Syncfusion]
Replied On July 20, 2017 02:18 AM

Hi Josep, 
 
We are glad that the issue is resolved at your end. Please let us know if you need any further assistance. 
 
Regards, 
Mathu Mohan V A 


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.

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.

;