Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Text flow over X pages |
Post Reply |
Author | |
Trpqp
Beginner Joined: 30 Jan 10 Status: Offline Points: 2 |
Post Options
Thanks(0)
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store