Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Mar 09, 2018 10:40 am

Hi,
In silverlight when loading the stream of test.xls file from isolated storage "Buffer cannot be null" error comes here

using (IsolatedStorageFile isolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication())
{
using (IsolatedStorageFileStream isolatesFileStream = new IsolatedStorageFileStream("test.xls", FileMode.Create, isolatedStorageFile))
{
loads data to excel here in test.xls file which is located in isolated storage
}
}
using (IsolatedStorageFile isolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication())
{
using (IsolatedStorageFileStream isolatesFileStream = new IsolatedStorageFileStream("test.xls", FileMode.Open, isolatedStorageFile))
{
Spire.Xls.Workbook book = new Spire.Xls.Workbook();

book.LoadFromStream(isolatesFileStream); //Buffer cannot be null error comes here

book.SaveToFile("test.xlsx", Spire.Xls.ExcelVersion.Version2007);
}
}

test21
 
Posts: 1
Joined: Fri Mar 09, 2018 7:09 am

Mon Mar 12, 2018 9:55 am

Hello,

Thanks for your post. After an initial test with Spire.XLS Pack(Hotfix) Version:8.3.0, I was unable to reproduce the issue. If you were using an older version, please first update to the new one to have a try. If the issue still exists after trying, please share us with your test.xls file which has loaded the data.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Mar 14, 2018 2:58 am

Hello,

Greeting from E-iceblue.
How is the issue going?
We will appreciate it if you could give us some feedback.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.XLS