Gary.zhang wrote:Hello,
It seems that there is something wrong on your codes, so could you please show the codes that demonstrate the process of drawing the three tables?
Thanks,
Gary
E-iceblue support team
for (int i = 0; i < option.Length; i++)
{
try
{
PdfDocument temp_ = new PdfDocument();
PdfPageBase tempPage = temp_.Pages.Add(page.Canvas.ClientSize, new PdfMargins(0));
PdfLayoutResult result2 = table.Draw(tempPage, new PointF(15, 10));
float height = result2.Bounds.Bottom;
if (page.Canvas.ClientSize.Height - yy >= height)
{
resultx = table.Draw(page, new PointF(15, yy));
yy = resultx.Bounds.Bottom + 30;
}
else
{
page = doc.Pages.Add(PdfPageSize.A4, margin);
resultx = table.Draw(page, new PointF(15, 10));
yy = resultx.Bounds.Bottom + 15;
}
//resultx = table.Draw(page, new PointF(15, yy));
//yy = resultx.Bounds.Bottom + yy + 15;
}
catch (PdfTableException ex)
{
}
}