简体   繁体   English

Gnostice PDF Engine(Delphi)如何创建一个接一个的表

[英]Gnostice PDF Engine (Delphi) How to create one table following another

I want to create one table of variable length, followed by another table. 我想创建一个长度可变的表,然后再创建另一个表。

You start a new table with 您使用

TableCols := BeginTable(X, Y, NoOfCols);

where X,Y is top left corner of table. 其中X,Y是表格的左上角。

First table may end in middle of first page or extend to subsequent pages. 第一表可以在第一页的中间结束或扩展到后续页。 So I do not know Y of 2nd table. 所以我不知道第二张桌子的Y。 Is there a CurrentPosition property that will give me Y? 是否有CurrentPosition属性会给我Y? Or a version of BeginTable that does not require X,Y? 还是不需要X,Y的BeginTable版本?

You can set the cell height before rendering the table and when you have finished rendering the tables, multiply the cell height with the number of rows. 您可以在渲染表格之前设置单元格高度,并在完成渲染表格后,将单元格高度乘以行数。 Then, you know the height of the current table. 然后,您知道当前表格的高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM