Print Page | Close Window

Text flow over X pages

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=1329
Printed Date: 01 Jul 24 at 5:06AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Text flow over X pages
Posted By: Trpqp
Subject: Text flow over X pages
Date Posted: 30 Jan 10 at 5:28PM

Hello,

We are experimenting with QP for report generation/output. After reviewing the forums/sample code/manual we can't seem to determine the answer to the following 2 questions:
 
1. Our report data is pulled from a DB via a recordset object in ADO/VB6. As we move through the recordset we use something similar to the following (simplified):
 
...
QP.DrawText 20, lngYPos, TextValuePulledFromADODB1
lngYPos = lngYPos + 10
QP.DrawText 20, lngYPos, TextValuePulledFromADODB2
lngYPos = lngYPos + 10
QP.DrawText 20, lngYPos, TextValuePulledFromADODB3
lngYPos = lngYPos + 10
...
 
Is this the best way/only way to do this (incrementing the Y position for each new line)?
 
2. How do we know when to create a new PDF page when outputting? If we have some large amount of text that could span more than one page, how can we instruct QP to simply flow the text on to the next/new page. Currently it just gets truncated at the end of the first page.
 
For example suppose we used QP.DrawWrappedText, do we need to figure out the exact position within our paragraph/text that a new page should occur at and then use NewPage at that point?
 
Thanks in advance.
 



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