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 Nov 06, 2023 2:47 am

The Xls save to pdf will made the header overlap to content
I expect the header will auto stretch keep the header only 3 lines.
But it may be keep the center header's width around 1/3 the whole sheet's width. So the header has 5 lines....

Code: Select all
Workbook book = new Workbook();
var fi = new FileInfo(txtSource.Text);
var newFileName = fi.FullName.Substring(0, fi.FullName.Length - fi.Extension.Length) + ".pdf";
book.LoadFromFile(txtSource.Text);
book.SaveToFile(newFileName, Spire.Xls.FileFormat.PDF);         
Attachments
HeaderOverlap.zip
(133.71 KiB) Downloaded 277 times

Cheunglik
 
Posts: 1
Joined: Mon Nov 06, 2023 2:21 am

Mon Nov 06, 2023 3:37 am

Hi,

Thanks for your feedback.
After testing, I have reproduced this issue and logged it into our issue tracking system with the ticket number SPIREXLS-4972, our dev team will investigate and fix it, we apologize for any inconvenience caused, once the issue is fixed, I will inform you asap.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Wed Dec 13, 2023 2:04 am

Hi,

Thanks for your patience.
Glad to inform you that we just released Spire.XLS 13.12, which has fixed your issue SPIREXLS-4972, please download from the following links and have a test.
Website: https://www.e-iceblue.com/Download/download-excel-for-net-now.html
Nuget: https://www.nuget.org/packages/Spire.XLS/13.12.0

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.XLS