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.

Mon Jun 13, 2022 8:44 am

i"m convert xls to xlsx succeed but image in xlsx not like original xls

Code: Select all
                  name = "filename.xls;
                  File.WriteAllBytes(name, System.Convert.FromBase64String(//**Base64 file));

                    Workbook document = new Workbook();
                    document.LoadFromFile(name);
                    for (int j = 0; j < document.Worksheets.Count; j++)
                    {
                        document.Worksheets[j].PageSetup.IsFitToPage = true;
                    }

                    Workbook workbook = new Workbook();
                    workbook.LoadFromFile(name);
                    string name_merge_xls = "filename.xlsx";
                    workbook.SaveToFile(name_merge_xls, ExcelVersion.Version2007);


result

excle.xls
Image

Convert xls to xlsx
Image


thank you

jame_piyawat2
 
Posts: 10
Joined: Fri May 07, 2021 4:36 am

Mon Jun 13, 2022 8:57 am

Hello,

Thank you for your inquiry.

To reproduce this issue, could you please share the xls file with us? You can upload it here or sent it to us via email(support@e-iceblue.com). Thanks in advance for your assistance.
Sincerely,
Andy
E-iceblue support team
User avatar

Andy.Zhou
 
Posts: 483
Joined: Mon Mar 29, 2021 3:03 am

Mon Jun 13, 2022 9:20 am

Andy.Zhou wrote:Hello,

Thank you for your inquiry.

To reproduce this issue, could you please share the xls file with us? You can upload it here or sent it to us via email(support@e-iceblue.com). Thanks in advance for your assistance.



thank you
I already sent an email

jame_piyawat2
 
Posts: 10
Joined: Fri May 07, 2021 4:36 am

Mon Jun 13, 2022 9:54 am

Hi,

Sorry, I checked my inbox and even the junk emails, but didn't find the email you sent. Could you please check it or send it again. You can also cc me (andy.zhou@e-iceblue.com).
thanks.
Sincerely,
Andy
E-iceblue support team
User avatar

Andy.Zhou
 
Posts: 483
Joined: Mon Mar 29, 2021 3:03 am

Tue May 09, 2023 6:31 am

thanks
User avatar

zaki.zou
 
Posts: 3
Joined: Fri Jun 16, 2017 2:35 am

Return to Spire.XLS

cron