Page 1 of 1

TTreePage error

Posted: Tue Apr 12, 2005 10:36 pm
by 9235787
TTreePage.Refresh has a problem when using the UsePrinter flag. When UsePrinter is True the GetWidth and GetHeight works correctly to return the printer values. However, in Refresh the FWidth and FHeight are used and the UsePrinter flag has no effect. Thus the default values at creation are used and paging is incorrect for the most part.

My work around is the set UsePrinter true. Retrieve the printer values and then set the Width and Height. If page orientation changes I have to make sure it is done again.

Posted: Wed Apr 13, 2005 6:37 pm
by Tom
Thanks for the bug-report. I'll add it to the maintenance list, so it can be fixed in future releases.