Hi Jay

reportelements has support for text alignment. Prints a report based
on a listbox. Allows for formatting via an xml file.

opensource at http://realopen.org/projects/reportelements

The class/method to look at is ReportGraphicStringKJTL.print

On 5/8/06, Jay Wooten <[EMAIL PROTECTED]> wrote:
We are updating the printing capabilities of our app. Up to now, all
the reports it generated were left justified, simple reports. Now our
users want alignment, font and text size capabilities.

So we started looking at the StyledTextPrinter and DrawBlock methods
and found that the DrawBlock doesn't support alignment (???)

Is that true? If not, then how the heck do you center, right align text?


So then we thought about doing something with DrawString of a
graphics object - which we have working and have been using. However
we run into an issue when we have a long string of text (i.e. needs
to wrap) that we want centered, and it appears at the bottom of a
printed page, where some of the text is one page 1, and the remainder
would be on page two.

The g.drawstring(s, x, y, wrapwidth) is simple enough, but how do
split the text into multiple lines so you can move the lines onto the
next page if necessary.

It's early and I haven't had my coffee yet, so I am probably
overlooking the obvious.

Help is appreciated.

Jay Wooten, President
Go Data Systems, Inc.
www.godatasystems.com
[EMAIL PROTECTED]


_______________________________________________
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>



--
Keith Hutchison
http://balance-infosystems.com http://realopen.org
http://www.kasamba.com/Keith-Hutchison
_______________________________________________
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>

Reply via email to