Free Support Forum -

Pb with IsFixedHeight- BackgroundColor and number of lines


There is a pb with the folowing code with aspose 6.0 or 6.1 and .NET 1.1 :

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.Generator.Table tab = new Aspose.Pdf.Generator.Table();
DataTable dt = new DataTable();

string[] st;
for (int i = 0;i<200;i++)
st = new string[2];
st[0] = "henry";
st[1] = "phil";
tab.ColumnWidths = ("80 80");
tab.RepeatingRows = 1;
foreach (Aspose.Pdf.Generator.Row r in tab.Rows)
r.FixedRowHeight = 20f;
tab.BackgroundColor = new Aspose.Pdf.Generator.Color("#d3d3d3");
Aspose.Pdf.Generator.Section section = pdf.Sections.Add();

If the dataTable has 20 lines, the resultant PDF is OK, Cells are well coloured but if the dataTable has many lines (200 in this example) cells are not well coloured, only the text in cells is coloured.

In attachment you will see these two tests with 20 lines and 200 lines.

Is there another way to have well coloured cells when the height of cells is mentionned ans when there is more than one page in the resultant PDF?


Just for information, the problem doesn't appear with the version 3.4 of aspose.pdf.


Thanks for using our products.<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>

have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-29918. We will investigate this
issue in details and will keep you updated on the status of a correction.<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:

We apologize for your inconvenience.

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

This message was posted using Notification2Forum from Downloads module by aspose.notifier.