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.

Wed Sep 25, 2024 2:05 pm

We are using Spire.XLS to create a excel , application is running on AWS. but we are getting the following error
cannot-found-font-installed-on-the-system

aakriti091
 
Posts: 5
Joined: Wed Sep 25, 2024 8:25 am

Thu Sep 26, 2024 3:25 am

Hello,

Thanks for your inquiry. The reason for this error is likely that the font file you need in the program cannot be found in your system. We suggest that you copy the commonly used fonts in the Windows system to your project, package them together, and upload them to AWS for running. At the same time, use 'workbook.CustomFontFileDirectory = ["fontpath"]' in the program to specify the path of the font folder after uploading, and ensure that the program has access to these fonts. Finally, if the issue still persists, please provide us with your testing file and the complete code you tested. Thank you in advance.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Thu Sep 26, 2024 10:05 am

So after doing this , we are able to see the font in excel but while adding a picture I am getting error in these line of codes, every time it gives the font error instead if the actual error.

Please find the attached picture for the error.
Code: Select all
ExcelPicture pic = sheet.Pictures.Add(imageStartRow, imageStartColumn, stream);
Attachments
error.png
error.png (82.85 KiB) Viewed 30 times

aakriti091
 
Posts: 5
Joined: Wed Sep 25, 2024 8:25 am

Fri Sep 27, 2024 2:31 am

Hello,

Thank you for your feedback.
What fonts have you uploaded so far? You can also upload commonly used fonts in Windows (such as Arial font, Calibri font, Times New Roman font, etc.) and try again. If the problem is still exists, please share your full testing code, input files as well as the picture for further investigation. Thank you in advance.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.XLS