Handling Overlays Band

735 views
Skip to first unread message

Williams

unread,
Aug 12, 2010, 4:22:49 PM8/12/10
to FastReport for [x]Harbour and for Alaska Xbase++
Hi Sergey

I have some questions for you

1. What is the better way to work with long text. I have some
contracts (between 3 to 5 pages) I wish to print it from my
application. I set the band streched property to TRUE and the memo
StrechedMode property to smMaxHeight and works fine but the whole text
is just in one memo object. Is this ok?

2. In the text I wish to change some words to bold style, Example:
This is a paragraph text with some bold words and italic words
How can I do this?

3. I put one overlay band in my report, inside there is a memo object
used for watermark purposes. I don't use the backpicture property
because it resize the image. How can I relocate the overlay band?
Right now the text is positioned at the top of the page and I want to
move down at the middle of the page (vertical)

I put this code but it doesn't work

procedure WatermarkOnBeforePrint(Sender: TfrxComponent);
begin
Watermark.Height := 15.30; // Doesn't work
Watermark.Font.Size := 72; // It's OK
Watermark.Clipped := FALSE; // It's OK
Watermark.Top := 15.30; // Doesn't work
end;

4. I want to print 3 copies of the contract. Each one should have
different watermarks text. For example:
Page1 : “COPY”
Page 2 “PAYMENT ADVISE”
Page 3 “FILE RECORD”

How can I change the text in accordance the print copy in running
time?


Thanks a lot!

Williams Pacheco
Saludos
Message has been deleted
Message has been deleted
Message has been deleted

Jose Manuel Garcia del Valle

unread,
Aug 12, 2010, 6:27:24 PM8/12/10
to fastreport_f...@googlegroups.com
Hello

1. What is the better way to work with long text. I have some
contracts (between 3 to 5 pages) I wish to print it from my
application. I set the band streched property to TRUE and the memo
StrechedMode property to smMaxHeight and works fine but the whole text
is just in one memo object. Is this ok?

>I do the same. It works well so it is ok!

2. In the text I wish to change some words to bold style, Example:
This is a paragraph text with some bold words and italic words
How can I do this?

>Mark the property AllowHTMLTags and put in the text <b> </b>, etc.


3. I put one overlay band in my report, inside there is a memo object
used for watermark purposes. I don't use the backpicture property
because it resize the image. How can I relocate the overlay band?
Right now the text is positioned at the top of the page and I want to
move down at the middle of the page (vertical)

I put this code but it doesn't work

procedure WatermarkOnBeforePrint(Sender: TfrxComponent);
begin
Watermark.Height := 15.30; // Doesn't work
Watermark.Font.Size := 72; // It's OK
Watermark.Clipped := FALSE; // It's OK
Watermark.Top := 15.30; // Doesn't work
end;

>The Overlay band can be as big as the page. Make it big enough and put the
>memo object in the place you want.

>If you call Watermark to the text object what you write is ok and, as you
>say, does not work, but I think that there is no need and perhaps overlay
>is an special band and does not work like others bands.


4. I want to print 3 copies of the contract. Each one should have
different watermarks text. For example:

Page1 : "COPY"
Page 2 "PAYMENT ADVISE"
Page 3 "FILE RECORD"

>Use this:

FrxGlobalVariables['CopyName0']:=' COPY ';
FrxGlobalVariables['CopyName1']:=' PAYMENT ADVISE ';
FrxGlobalVariables['CopyName2']:=' FILE RECORD ';

>And in the text object

[CopyName#]


-----Mensaje original-----
De: fastreport_f...@googlegroups.com
[mailto:fastreport_f...@googlegroups.com] En nombre de
fo...@t-com.me
Enviado el: jueves, 12 de agosto de 2010 23:32
Para: fastreport_f...@googlegroups.com
Asunto: RE: Handling Overlays Band

Hi Sergey


Thanks a lot!

Williams Pacheco
Saludos

--
You received this message because you are subscribed to the Google Groups
"FastReport for [x]Harbour and for Alaska Xbase++" group.
To post to this group, send email to
fastreport_f...@googlegroups.com.
To unsubscribe from this group, send email to
fastreport_for_x_h...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/fastreport_for_x_harbour?hl=en.


--
You received this message because you are subscribed to the Google Groups
"FastReport for [x]Harbour and for Alaska Xbase++" group.
To post to this group, send email to
fastreport_f...@googlegroups.com.
To unsubscribe from this group, send email to
fastreport_for_x_h...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/fastreport_for_x_harbour?hl=en.

Reply all
Reply to author
Forward
0 new messages