Hi,
I try to use IsFirstRowRepeated on an xml template, but i’m losing the first padding on the second page.
My samples :
XML :
C# code :
var license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Total.lic”);
var pdf = new Pdf { IsTruetypeFontMapCached = false };
pdf.BindXML(@“E:\TEST\TemplateP1.xml”, null);
var section = pdf.Sections[4];
var ls = new List();
for (int i = 0; i < 100; i++)
{
ls.Add(new TestClass
{
Element1 = “Calling”,
Element2 = “0692******”,
Element3 = “26/10 17:41:19”,
});
}
var tab = ((Table)section.GetObjectByID(“Detail”));
foreach (var testClassPourBind in ls)
{
var row = tab.Rows.Add();
var cell = row.Cells.Add();
var txt = new Text(testClassPourBind.Element1)
{
TextInfo =
{
FontName = “Calibri”,
FontSize = 7,
Alignment = AlignmentType.Left
}
};
cell.Paragraphs.Add(txt);
cell = row.Cells.Add();
txt = new Text(testClassPourBind.Element2)
{
TextInfo =
{
FontName = “Calibri”,
FontSize = 7,
Alignment = AlignmentType.Center
}
};
cell.Paragraphs.Add(txt);
cell = row.Cells.Add();
txt = new Text(testClassPourBind.Element3)
{
TextInfo =
{
FontName = “Calibri”,
FontSize = 7,
Alignment = AlignmentType.Center
}
};
cell.Paragraphs.Add(txt);
}
pdf.Save(“E:/TestWithTpl.pdf”);
(The result pb on attachment)
Can you help me please?