 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Giovanni Bechis Guest
|
Posted: Mon Sep 19, 2005 3:00 pm Post subject: Report orientation |
|
|
I'm using Delphi7 with Rave 5.0, if I change the orientation of the
report from portrait to landscape the report's component does not
resize. I would like to resize the component this way:
Portrait:
-----------------------
| Quote: | label1 label2|
----------------------- |
Landscape:
---------------------------------------
| Quote: | label1 label2|
--------------------------------------- |
Is such a thing possible to do?
Thanks
Gio'
--
/*
* Solutions for New Business - http://www.snb.it
*/
|
|
| Back to top |
|
 |
Nevrona Support Guest
|
Posted: Tue Sep 20, 2005 1:38 pm Post subject: Re: Report orientation |
|
|
| Quote: | I'm using Delphi7 with Rave 5.0,
|
Please include your Rave product (BE or BEX) and version number. It helps us provide a better support answer.
| Quote: | if I change the orientation of the report from portrait to landscape the report's component does not resize. I would like to resize the component this way: ..... Is such a thing possible to do?
|
Rave does have some capabilities to dynamically change component positions. You need to look at the WasteFit and Anchors properties. However, I can not quite envision a clean stretch etc of a well designed portrait looking that good in the landscape mode. In general, those properties are there to help with different printers having different "waste" areas or small changes in paper size like going from letter size to A4. If you are going to try using the anchors, be sure that you remember to resize (anchor) the region as well as all the other components.
Another "wild" thought I had, would be to use an event on each component and adjust the left property by an amount that you pass in as a parameter. So for portrait the parameter would be "0" and for Landscape it would be "1.25" (half the difference in widths - 11 - 8.5 = 2.5). I do not necessarily like this solution, just another "wild" approach. The scripting engine has been significantly improved since the 5.0.8 release (approaching 3 years ago). So if you are using Rave BE 5.0.8, then I would not recommend using events as that was a very early release of the scripting engine.
Technical Support
[email]support (AT) nevrona (DOT) com[/email]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|