Spire.XLS is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Mon Aug 23, 2021 7:07 pm

Index was out of range on SaveToStream method in a Docker container hosted on Linux:

Workbook workbook = new Workbook();
streamRes = new MemoryStream(dataBytes, 0, dataBytes.Length, false, true);
workbook.LoadFromStream(streamRes);
MemoryStream streamPdf = new MemoryStream();

//This code fail on the Docker container but is working on windows
workbook.SaveToStream(streamPdf, Spire.Xls.FileFormat.PDF);

adanhvillegas
 
Posts: 1
Joined: Mon Aug 23, 2021 7:01 pm

Tue Aug 24, 2021 2:37 am

Hello,

Thanks for your inquiry.
Kindly note that when using our Spire.XLS to convert Excel to PDF on Linux Docker, you need to install all fonts used in the Excel file. Please make sure you have installed the corresponding fonts in your Linux docker container.

If the issue still occurs after installing all the fonts used, please provide your input file, your dockerfile to help us investigate further. You could send them to us(support@e-iceblue.com) via email. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1242
Joined: Mon Oct 19, 2020 3:04 am

Wed Sep 01, 2021 10:07 am

Hello,

Greetings from E-iceblue!
Has your issue been resolved? Any feedback will be greatly appreciated.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1242
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.XLS