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 Jan 13, 2017 10:33 pm

I am getting exception at LoadFromFile.
I sent a detailed email to support@e-iceblue.com.
I have pro subscription for .net.

I have an xlsx file that I save with a different name and populate the new file with data.
Then load the new file in c#.
LoadFromFile(newFIleName, ExcelVersion.Version2010);
Then save as pdf
wb.SaveToFile(pdfFileName, Spire.Xls.FileFormat.PDF)

The exception is at LoadFromFile.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

It was working but merged cells were not coming up correctly in pdf.

Thanks.

smita.desai@ironmountain.com
 
Posts: 4
Joined: Mon May 02, 2016 7:47 pm

Mon Jan 16, 2017 6:35 am

Dear Smita,

Thanks for your inquiry.
I have tested the scenario with the latest Spire.XLS Pack Hotfix Version:7.11.34, but merged cells were coming up correctly in PDF. Please provide us sample files of the issue to do a further investigation.

Sincerely,
Simon
E-iceblue support team
User avatar

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

Tue Jan 17, 2017 7:04 am

Dear Smita,

Hope you fine.
Did you test the scenario through the latest Version(Spire.XLS Pack Hotfix Version:7.11.34) and is that work for you? Please kindly give us some feedback. If the issue is still there, please provide us the sample files. It will much helpful to investigate the scenario.

Sincerely,
Simon
E-iceblue support team
User avatar

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

Return to Spire.XLS