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 May 04, 2022 6:42 am

Create a new EXCEL worksheet, call the Pictures.AddLinkPic method to insert a remote picture and save it as an EXCEL file. The picture can be displayed, but the direct export to PDF picture will not be displayed.

Code: Select all
using Spire.Xls;

var wb = new Workbook();
wb.Worksheets.Clear();
var sheet = wb.Worksheets.Add("职员表");
// 远程图片
sheet.Pictures.AddLinkPic(5, 5, 500, 500,"https://tse2-mm.cn.bing.net/th/id/OIP-C.LK8gVnu6ADbQYbhI7-ocnwHaDH?w=310&h=147&c=7&r=0&o=5&pid=1.7");
wb.SaveToFile("topdf.pdf",FileFormat.PDF);
wb.SaveToFile("toexcel.xlsx",FileFormat.Version2016);

spsadmin
 
Posts: 2
Joined: Wed May 04, 2022 6:14 am

Wed May 04, 2022 7:19 am

Hello,

Thank you for your inquiry.
I tested your code and reproduced the issue you mentioned. I have logged the issue into our bug tracking system with the ticket number SPIREXLS-3838. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Thu May 26, 2022 9:56 am

Hello,

Thanks for your patience!
Glad to inform you that we just released Spire.XLS Pack(Hotfix) Version:12.5.30 which fixes the issue of SPIREXLS-3838.
Please download the new version from the following links to test.

Website link: https://www.e-iceblue.com/Download/download-excel-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.XLS/12.5.3

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Fri Aug 26, 2022 1:29 am

ok,thanks

spsadmin
 
Posts: 2
Joined: Wed May 04, 2022 6:14 am

Return to Spire.XLS

cron