gettingstarted
[Top] [All Lists]

Minimum height to do a complete DrawBlock in StyledTextPrinter

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Minimum height to do a complete DrawBlock in StyledTextPrinter
From: Paul Mateescu <paul dot mateescu at rdslink dot ro>
Date: Thu, 31 Mar 2005 11:14:01 +0300
Delivered-to: gettingstarted at lists dot realsoftware dot com
Hello,

When working with a StyledTextPrinter, we call DrawBlock until there is no more text to print.

Is there any method that will find out what is the minimum height needed to do a complete DrawBlock (that is, EOF would hold true after first call) at the current Width of the StyledTextPrinter?

The only solution I could figure out is to simulate a few DrawBlocks at different Heights and note the first one that makes EOF true. But it is time consuming and not so accurate.

I think such a function would be very useful, for instance, in a tabular-style printed report, when finding the needed height of a row.

Best regards,

Paul Mateescu

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • Minimum height to do a complete DrawBlock in StyledTextPrinter, Paul Mateescu <=