changing page orientation onBeginDoc
agi
Poland
I'm using Kylix3 and I need to change page orientation in case of some parameters. In design-time I have set pgOr to poLandscape. I'm changing pgOr in OnBeginDoc event to poPortrait but it has no result in Preview. The page is still landscape oriented and the printed data is in Portrait. The problem is that the rows are printed like the page is in Landscape, so after print report there is about 1/4 page free.
I was trying to change page orientation just after creating the report but it has the same result.
Is there any solution of this problem?
I was trying to change page orientation just after creating the report but it has the same result.
Is there any solution of this problem?