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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Text flow over X pages
  FAQ FAQ  Forum Search   Register Register  Login Login

Text flow over X pages

 Post Reply Post Reply
Author
Message
Trpqp View Drop Down
Beginner
Beginner


Joined: 30 Jan 10
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Trpqp Quote  Post ReplyReply Direct Link To This Post Topic: Text flow over X pages
    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.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store