Sign In  Sign Up Live-Chat

Table - Landscape PDF not splitted -

Last post 10-15-2007, 4:42 AM by bemore. 14 replies.
Sort Posts: Previous Next
  •  09-21-2007, 4:04 AM 95691

    Table - Landscape PDF not splitted -

    Attachment: Present (inaccessible)

    Hello,

    I generate lots of pdf's with different set of data. I have an issue generating a pdf with one set of data. The table get not splitted over multiple page and part of the data is missing.

    Moreover with the same set of data I get an error ""Invalid index in Cells indexer: 5" when saving the document. I identified the code part causing the problem when saving :

    //Format data table

    int nbColumns = table2.Rows[1].Cells.Count;

    for (int i = 0; i < nbColumns; i++)

    {

       width = table2.GetMaxColumnWidth(pdfDoc, i);

       table2.SetColumnWidth(i, width);

    }

    PdfDoc.Save(Utils.BuildFilePath(timeSerie, timeSerie.IdDataCategory, Enums.FileFormat.PDF, timeZone, timeSerie.Date, int.MinValue, true));

    StackTrace :

    "   at Aspose.Pdf.Cells.get_Item(Int32 index)\r\n   at Aspose.Pdf.Xml.ᖂ.ᖌ(Pdf Ӕ, Section Ⴛ, Table Ֆ, Ӟ Ӷ)\r\n   at Aspose.Pdf.Xml.ᖂ.ᖄ(Pdf Ӕ, Section Ⴛ, Table Ֆ, Ӟ Ӷ, Boolean ᎘)\r\n   at Aspose.Pdf.Xml.ᕶ.ᕹ(Pdf Ӕ, Section Ⴑ, Ӟ Ӷ)\r\n   at Aspose.Pdf.Xml.ڇ.႐(Pdf Ӕ)\r\n   at Aspose.Pdf.Xml.ᦈ.ᦍ(ӟ ຬ, Pdf Ӕ)\r\n   at Aspose.Pdf.Pdf.Save(String pdfFile)\r\n   at ETSOVistaLib.PDFGenerator.BuildPDFFile(TimeZoneInformation timeZone, TimeType timeType, MemoryTimeSerie timeSerie, Int32& timeZoneIndex, Boolean buildGroupHeader) in D:\\VSS\\Projects06\\ETSOVista\\Dev\\ETSOVistaLib\\JobOutputGenerators\\OutputGenerators\\PDFGenerator.cs:line 398"

    It will be difficult to post the data set used because it's a set of business objects. Could you maybe give me a hint on the error message ? I think in someway my pdftable is corrupt and it would explain both problems. I included the entire pdf generation function enclosed. 

    Thanks

    Gilles

     
  •  09-21-2007, 9:24 AM 95739 in reply to 95691

    Re: Table - Landscape PDF not splitted -

    Dear Gilles,

    It is difficult for us to reproduce this error. Can you please provide a runable project that can reproduce this error?

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-24-2007, 3:46 AM 95883 in reply to 95739

    Re: Table - Landscape PDF not splitted -

    Attachment: Present (inaccessible)

    Dear Tommy,

    I made a project reproducing the errors. The issue comes from the spanned header cells content. If the content of the spanned cells is too large to fit on one page it will not split over multiple page and cause the following code to throw exception when saving the document if not in commentar :

    ////!!! THIS BLOCK MAKES PDF.SAVE() THROW EXCEPTION WHEN USED !!!!

    int nbColumns = table2.Rows[1].Cells.Count;
    for (int i = 0; i < nbColumns - 1; i++)
    {
    width = table2.GetMaxColumnWidth(pdfDoc, i);
    table2.SetColumnWidth(i, width);
    }

    Please try the project enclosed. I used Aspose.PDF 3.5.8 runtime 2.0

    Thank you

    Gilles

     
  •  09-24-2007, 8:20 AM 95917 in reply to 95883

    Re: Table - Landscape PDF not splitted -

    Dear Gilles,

    I have reproduced this error and logged as PDFNET-3787. We will try to fix it soon.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-25-2007, 1:13 AM 95996 in reply to 95883

    Re: Table - Landscape PDF not splitted -

    Attachment: Present (inaccessible)
    Dear Gilles,

    The bug has been fixed. Please try the attachment before we publish new hotfix.

    Best regards.

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-25-2007, 7:27 AM 96054 in reply to 95996

    Re: Table - Landscape PDF not splitted -

    Attachment: Present (inaccessible)

    Dear Hans,

    Thank you for the patch provided promptly. The patch works with the sample I given to you. I made a try with another content and it doesn't split the file. I just modified the text content of the top merged cells in the new file.

    Please try the enclosed test project to reproduce the problem.

    Best regards

    Gilles

     
  •  09-25-2007, 11:07 PM 96181 in reply to 96054

    Re: Table - Landscape PDF not splitted -

    Hi Gilles,

    We are working on this issue now. We will try to fix it ASAP.

    Best regards.

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-28-2007, 7:26 AM 96615 in reply to 96181

    Re: Table - Landscape PDF not splitted -

    Hi Hans

    Ok I will wait for any news or a patch.

    Best regards

    Gilles Faessler

     

     
  •  10-05-2007, 3:20 AM 97463 in reply to 96615

    Re: Table - Landscape PDF not splitted -

    Hello,

    Is there any news on this issue ?

    Thank you

    Gilles Faessler

     
  •  10-05-2007, 3:43 AM 97468 in reply to 97463

    Re: Table - Landscape PDF not splitted -

    Dear Gilles,

    We hope to give you a solution before next Monday.

    Best regards.


    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-07-2007, 7:10 PM 97677 in reply to 97463

    Re: Table - Landscape PDF not splitted -

    Attachment: Present (inaccessible)

    Hi,

    The Table Landscape splitting problem is resolved. Please try the attachment before our new hotfix.

    Now, the method GetMaxColumnWidth()    returns the max column's width rather than the cell's it used to.

    Thanks for your patience.

    Best regards.


    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-08-2007, 3:51 AM 97701 in reply to 97677

    Re: Table - Landscape PDF not splitted -

    Attachment: Present (inaccessible)

    Dear Hans,

    Thank you for the updated dll, i made some try with it and it works fine. The GetMaxColumnWidth works fine too. I just still have some minor issues on some output documents but I think that I can pass trough by changing document margin and configuration.

    Attached you will find two pdfs ("FR-ES-2007" and "FR-BE-2007")

    FR-ES problem is that part of the document is still truncaded, FR-BE problem is that on the second page the header is wrapped. Could you give me an advise on how to solve that ?

    Thank you very much

    Gilles

     
  •  10-08-2007, 11:25 PM 97842 in reply to 97701

    Re: Table - Landscape PDF not splitted -

    Dear Gilles,

    I can see the problems. I will work on that and give you a solution soon.

    Best regards.

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-10-2007, 1:37 PM 98129 in reply to 97701

    Re: Table - Landscape PDF not splitted -

    Dear Gilles,

    For
    FR-BE problem:
    Our design is that when a cell with ColumnSpan > 1 and spans two pages, the cell will be split into two cells. And the content of the original cell will be shown in these two cells both. I think this is necessary, but this also result in one problem as shown in "FR-ES-2007":
    on the second page the header is wrapped.
    To avoid this,
    You can use following method to set the wrapped header's column width to a proper value before pdf.save().
      Class Table:
      public void SetColumnWidth(int columnNumber, float width);

    For FR-ES problem:
    I am afraid it is hard to reproduce the error with the project you provided before. Would you please attche the corresponding project? It will help us to resolve the problem. Thanks.

    Best regards.

    Hans Zhang
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-15-2007, 4:42 AM 98564 in reply to 98129

    Re: Table - Landscape PDF not splitted -

    Dear Hans,

    Thank you for your answer. I am a bit too much busy theses days but i will try your solution and give you a sample to reproduce the FR-BE problem as soon as possible.

    Best regards

    Gilles Faessler

     
View as RSS news feed in XML