Hello,
i wanted to know if i can check if my element (table, paragraph, … ) is the last element in the page ? i have title blocs that i want to put in a new page if they are last elements in page.
Thanks
Hello,
i wanted to know if i can check if my element (table, paragraph, … ) is the last element in the page ? i have title blocs that i want to put in a new page if they are last elements in page.
Thanks
Hi Zeid,
Hi Zeid,
thank you for your response ! it’s a little bit complex to integrate the title in a table.
Many thanks
Zied
Hello again,
i have seen that it’s possible to tell if a table “IsBroken” or not, a workaround for my problem is to tell that the header of the table can’t be dissociated from the other rows, but the other rows can break into several pages, is it possible?
thank’s
Hi Zeid,
Document pdf = new
Document();<o:p></o:p>
Page page = pdf.Pages.Add();
Aspose.Pdf.Table t = new Aspose.Pdf.Table();
t.ColumnWidths = "70 70";
t.RepeatingRowsCount = 1;
Aspose.Pdf.Row row = t.Rows.Add();
row.FixedRowHeight = 14;
row.BackgroundColor = Aspose.Pdf.Color.LightGray;
row.Cells.Add("Header 1");
row.Cells.Add("Header 2");
for (int i = 0; i < 150; i++)
{
row = t.Rows.Add();
row.Cells.Add("Data 1-" + i);
row.Cells.Add("Data 2-" + i);
}
page.Paragraphs.Add(t);
pdf.Save(filename);
Please feel free to contact us for any further assistance.
Best Regards,
Hello tital,
Thank you for your response but with this solution we can have a Header with 0 detail rows in the same page if the header begins in the bottom of the page, my client don’t accept this solution.
Regards
zied.nemili:Thank you for your response but with this solution we can have a Header with 0 detail rows in the same page if the header begins in the bottom of the page, my client don't accept this solution.