Print Page | Close Window

DrawTableRows and pagebreak

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1355
Printed Date: 18 May 24 at 5:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DrawTableRows and pagebreak
Posted By: Detlev
Subject: DrawTableRows and pagebreak
Date Posted: 02 Mar 10 at 9:04AM

Hi,

I use this loop to print a table with many rows on a series of pages:

<<<<

PrintedRecordCount := 0;

ttt := PDFLibrary.DrawTableRows(tableID, tLeft, tTop , tHeight, PrintedRecordCount + 1, 0);
PrintedRecordCount := PDFLibrary.GetTableLastDrawnRow(tableID);
while PrintedRecordCount < nrow do
begin

Newpage;
ttt := PDFLibrary.DrawTableRows(tableID, tLeft, tTop , tHeight, PrintedRecordCount + 1, 0);
PrintedRecordCount := PDFLibrary.GetTableLastDrawnRow(tableID);

end;

>>>>

The problem is that the second and the following calls to DrawTableRows will allways return 0 for ttt and PrintedRecordCount. Any idea?

It would be nice to repeat headlines on the following pages (if any) and / or the first column (if the table is wider than the page. Is there a smart solution for this?

Detlev







Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk