Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sun Jan 03, 2021 5:54 pm

Hi Supportteam,

when using rowspans in headers a - "out of index" exception occurs.
Here is my demo code to reproduce the error:
Code: Select all
            PdfDocument doc = new PdfDocument();
            PdfPageBase page = doc.Pages.Add();

            PdfGrid grid = new PdfGrid();

            //COLS
            grid.Columns.Add(5);
            float width = page.Canvas.ClientSize.Width - (grid.Columns.Count + 1);
            for (int j = 0; j < grid.Columns.Count; j++)
            {
                grid.Columns[j].Width = width * 0.20f;
            }

            //HEADER
            grid.RepeatHeader = true;
            var headerRows = grid.Headers.Add(3);

            //ROWS
            for (int i = 0; i < 5; i++)
            {
                grid.Rows.Add();
            }

            //HEADER HEIGHT
            for (int i = 0; i < grid.Headers.Count; i++)
            {
                grid.Headers[i].Height = 20.0f;
            }

            //ROWS HEIGHT
            for (int i = 0; i < grid.Rows.Count; i++)
            {
                grid.Rows[i].Height = 20.0f;
            }

            //THIS ROWSPAN WILL RAISE EXEPTION WHEN GRID IS DRAWING!!!
            grid.Headers[0].Cells[0].RowSpan = 2;


            grid.Draw(page, new PointF(0, 100));
            doc.SaveToFile("grid.pdf");           


regards Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Jan 04, 2021 2:59 am

Hello Christian,

Thanks for your inquiry.
I have reproduced your issue and logged it in our bug tracking system with the ticket SPIREPDF-3948. If there is any update, we will let you know. Apologize for the inconvenience caused.
If you have any other questions, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Mon Jan 04, 2021 8:27 am

Hello Brian,
thanks for your quick response.
We are using Spire.Office for .NET (licensed for: Spire.PDF, Spire.XLS and Spire.Presentation), can you estimate how long the bugfix might take? I ask because we have already a view issues in your bug tracking system and some of them waiting for a solution for a long time.

best regards Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Jan 04, 2021 9:10 am

Hello Christian,

Thanks for your response.
Sorry that we are unable to tell you an estimated time about fixing at this moment. Our Dev team will investigate further and fix it.
Anyway, I have given your issue a high priority and requested our Dev team to share any possible ETA at their earliest time. We will notify you as soon as there is any good news.

Besides, we don't find the purchase information related to your register email. Could you please provide your Order number or purchase email so that we could record your purchase information?

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Wed Jan 06, 2021 5:14 am

Hi Brian,
thank you for your efforts, find our purchase informations as requested:

    Order No.7659 Spire.XLS Pro Edition
    Order No.7264 Spire.Presentation Pro
    Order No.6351 Spire.PDF Pro Edition

best regards Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Wed Jan 06, 2021 7:17 am

Hello Christian,

Thanks for providing your Purchase information.
Besides, I just checked the status of your issue and found it has been fixed. It is now under the testing phase. Once it passes the test, we compile a new version for you.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Wed Jan 06, 2021 7:23 am

:D

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Jan 25, 2021 8:27 am

Hello Christian,

Glad to inform you that we just released Spire.Office Platinum Version:6.1 which fixes your issue, please download it from the following links to test on your side. Looking forward to your testing result.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Office/6.1.0

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Jan 29, 2021 8:46 am

Hello,

Greetings from E-iceblue.
Does this hotfix solve your issue? Could you please give us some feedback at your convenience?

Best regards,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Jan 29, 2021 10:58 am

Hello,

still testing, many other changes needs to be checked, feedback latest on Monday.

best regards
Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Feb 01, 2021 9:57 am

Okay, I'm looking forward to your further test result.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Sun Feb 07, 2021 8:36 am

Hello,

Greetings from E-iceblue!
How is your test result? Looking forward to your feedback.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Mon Feb 08, 2021 11:46 am

Hello,
sorry for my late answer, after extensive tests I can say the exception is solved, but the related issue https://www.e-iceblue.com/forum/rows-cells-missing-on-multiple-rowspans-in-pdfgrid-t9885.html is still unsolved.
So exception is gone, result is still wrong. ;)

regards
Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Tue Feb 09, 2021 1:47 am

Hello Christian,

Thanks for your feedback.
Regarding the issue SPIREPDF-3986, sorry its fix is not included in Spire.Office Platinum Version:6.1. It will be included in the next version.
Once the new version of Spire.Office is released, I will inform you ASAP.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF