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.

Tue Dec 20, 2022 11:12 pm

Good Afternoon,

We are running our project with Spire references in a Linux container on Azure. We are currently not adding or installing any fonts and our project is using the following references...
Code: Select all
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.3" />
    <PackageReference Include="Spire.Officefor.NETStandard" Version="7.12.0" />

[b]and[/b]
<ItemGroup>
    <RuntimeHostConfigurationOption Include="System.Drawing.EnableUnixSupport" Value="true" />
  </ItemGroup>


and we are constantly getting the below error messages...

Code: Select all
Cannot found font installed on the system.Arial
   at sprᳫ.ᜀ(String A_0, FontStyle A_1, Boolean A_2)
   at spr↵.ᜀ(spr↲ A_0, Int32 A_1, RectangleF A_2)
   at spr↵.ᜀ(spr㖬 A_0, spr῅ A_1, Int32 A_2, Int32 A_3, Int32 A_4, Int32 A_5, spr↳ A_6)
   at spr↵.ᜀ(spr῅ A_0, Int32 A_1, Int32 A_2, Int32 A_3, Int32 A_4, spr↳ A_5)
   at Spire.Xls.Core.Spreadsheet.XlsRange.AutoFitColumns()


Our program always crashes when we call the AutoFit() due to Spire not finding the Arial font. Given the above information, is there a specific Docker version we should be using? Do you perhaps have some other way of getting around this? Right now we have to comment out the
AutoFit()
references to get the package to run correctly.

Bandonia
 
Posts: 34
Joined: Tue Nov 16, 2021 9:40 pm

Wed Dec 21, 2022 10:10 am

Hello,

Thanks for your inquiry.
Please first make sure these fonts used in excel file are installed. If these fonts has been installed, to help us reproduce your issue and work out a solution for you, please offer the following message, thanks for your assistance in advance.
1) Your input excel file, you can attach here or send it to us via email (support@e-iceblue.com).
2) Your complete test code than can reproduce your issue.
3) Application type, such as Console App, .NET Framework 4.8.
4) Your test environment, such as CentOS release 7.9.2009

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.XLS