Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Border not rendering around table

Last post 03-25-2009, 12:14 AM by forever. 4 replies.
Sort Posts: Previous Next
  •  11-19-2008, 6:18 PM 153341

    Border not rendering around table

    I'm having a problem where my border isn't displaying around the table where I'm setting it.  Instead, the border is printing below the table.

    What I'm trying to do is to have 2 columns and 2 rows in my pdf file.
    In the first column there are 2 tables (one in each row), then in the second column there is one table that spans both rows.
    The table in the second column is not a fixed size, so I want the bottom table in the first column to be aligned with the bottom of the table in the second column. This is why I'm setting the vertical alignment to bottom for the second row. When I try to do this, I'm getting this problem with the border.

    Here's a simplified example:

                String pdfFileName = "c:/temp/test.pdf";
                Pdf pdf = new Pdf();
                Section DocumentSection = pdf.Sections.Add();
                Table reportDataTable = new Table();
                reportDataTable.ColumnWidths = "50% 50%";
                DocumentSection.Paragraphs.Add(reportDataTable);
                Row topReportDataRow = reportDataTable.Rows.Add();
                Row bottomReportDataRow = reportDataTable.Rows.Add();
                topReportDataRow.VerticalAlignment = VerticalAlignmentType.Top;
                bottomReportDataRow.VerticalAlignment = VerticalAlignmentType.Bottom;


                Cell cell1 = topReportDataRow.Cells.Add("A");


                Cell cell3 = topReportDataRow.Cells.Add();
                cell3.RowSpan = 2;
                Table cell3Tab = new Table();
                cell3Tab.ColumnWidths = "100%";
                cell3.Paragraphs.Add(cell3Tab);
                cell3Tab.Rows.Add().Cells.Add("1");
                cell3Tab.Rows.Add().Cells.Add("2");
                cell3Tab.Rows.Add().Cells.Add("3");
                cell3Tab.Rows.Add().Cells.Add("4");

                Cell cell2 = bottomReportDataRow.Cells.Add();
                Table cell2Tab = new Table();
                cell2Tab.BackgroundColor = new PDFColor("#99BBE8");
                cell2Tab.ColumnWidths = "100%";
                cell2Tab.Border = new BorderInfo((int)BorderSide.All, 1, new PDFColor("#BDC5C9"));
                cell2.Paragraphs.Add(cell2Tab);
                Cell dataCell2 = cell2Tab.Rows.Add().Cells.Add("B");

                pdf.Save(pdfFileName);

                Process.Start(pdfFileName);



     
  •  11-20-2008, 2:01 AM 153368 in reply to 153341

    Re: Border not rendering around table

    Hello Bill,

    In order for us to investigate this issue in detail and rectify it, please attach your resultant Pdf file and an image file that can show your desired results.

    We apologize for your inconvenience.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  11-20-2008, 9:20 AM 153446 in reply to 153368

    Re: Border not rendering around table

    Attachment: Present (inaccessible)
    I've attached a PDF that shows the issue.  The way it should look is the gray border should be around the blue table with the 'B' in it.
     
  •  11-20-2008, 4:07 PM 153513 in reply to 153446

    Re: Border not rendering around table

    Attachment: Present (inaccessible)

    Hello Bill,

    I have tested the issue using latest version of Aspose.Pdf 3.9.0.0 and in my case the border is being displayed properly, but bottom table in the first column is not being properly aligned with the bottom of the table in the second column. I've attached the resultant file, please take a look.

    I have logged this issue in our issue tracking system as PDFNET-6554. We will investigate this issue in detail and will keep you updated on the status of a correction. We apologize for your inconvenience.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  03-25-2009, 12:14 AM 171382 in reply to 153341

    Re: Border not rendering around table

    The issues you have found earlier (filed as 6554) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by forever.
     
View as RSS news feed in XML