Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Dos anyone know how to increase the line spacing in Rave reports ?


This question is answered.


Permlink Replies: 3 - Last Post: May 26, 2016 3:38 AM Last Post By: John Mitchell Threads: [ Previous | Next ]
John Mitchell

Posts: 64
Registered: 9/23/02
Dos anyone know how to increase the line spacing in Rave reports ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 24, 2016 4:56 AM
Delphi XE2

Using code based Rave reports successfully.
We've been able tomake adjustments as needed pretty easily.

But now a customer wants more space between the report lines.

We're using simple "PrintLn(s)" calls.

And I cannot figure out where the setting is to increase the space between lines.

Does any know how to do that ?
George Winkler

Posts: 41
Registered: 5/10/05
Re: Dos anyone know how to increase the line spacing in Rave reports ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 24, 2016 6:43 AM   in response to: John Mitchell in response to: John Mitchell
John Mitchell wrote:
Delphi XE2

Using code based Rave reports successfully.
We've been able tomake adjustments as needed pretty easily.

But now a customer wants more space between the report lines.

We're using simple "PrintLn(s)" calls.

And I cannot figure out where the setting is to increase the space between lines.

Does any know how to do that ?

When I am printing a line I use GoToXY(X,Y) to go to the line. Then print it. This way if I have multiples to print I can put them anywhere I want.

Y := 1.0;
X := 0.5;
GoToXY(X,Y);
PrintLeft('something');
Y := Y + 0.2;
GoToXY(X,Y);
PrintLeft('print something else');

Obviously that can be put in loop. You can make the space whatever you want.

George
Brent Rose

Posts: 126
Registered: 9/23/00
Re: Dos anyone know how to increase the line spacing in Rave reports ?
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2016 1:42 AM   in response to: John Mitchell in response to: John Mitchell
Try the ReportPrinter1.LineHeight property.

If you set LineHeight in this way, the LineHeightMethod will be set to
lhmUser. It can also be set to lhmLinesPerInch (see property
LinesPerInch) or to lhmFont to allow the current font to dictate the
line height.

The other method (which may give better control) is to simply advance
YPos by a constant amount with each line. eg

Println('one');
YPos := YPos + 2;
Println('two');
YPos := YPos + 2;
Println('three');
YPos := YPos + 2;

On 24/05/2016 11:56 p.m., John Mitchell wrote:
Delphi XE2

Using code based Rave reports successfully.
We've been able tomake adjustments as needed pretty easily.

But now a customer wants more space between the report lines.

We're using simple "PrintLn(s)" calls.

And I cannot figure out where the setting is to increase the space between lines.

Does any know how to do that ?
John Mitchell

Posts: 64
Registered: 9/23/02
Re: Dos anyone know how to increase the line spacing in Rave reports ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2016 3:38 AM   in response to: John Mitchell in response to: John Mitchell
Yes, LineHeight turned out to be the answer.

Overall we need to be able to know ahead of time the number of lines we can print on the page in order to do some pre-formatting, and we need to use PrintLn only - not the manual positioning of the "Y" value doesn't help us.

Tweaking Lineheight works perfectly - thanks for the help !
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02