|
-
Jun 17th, 2008, 02:07 PM
#1
Thread Starter
Fanatic Member
[2008] Richtextbox: Adding Header/Footer to contents
When I print out the contents of my richtextbox...
How can I add a header including text and a logo
And a footer with say, the date and some text ??
Thanks for any help.
-
Jun 17th, 2008, 02:08 PM
#2
Hyperactive Member
Re: [2008] Richtextbox: Adding Header/Footer to contents
-
Jun 17th, 2008, 02:11 PM
#3
Thread Starter
Fanatic Member
Re: [2008] Richtextbox: Adding Header/Footer to contents
Haven't decided yet but Merrion's solution looks very attractive
-
Jun 17th, 2008, 02:17 PM
#4
Hyperactive Member
Re: [2008] Richtextbox: Adding Header/Footer to contents
that i dont know then ...
it would have been easy using drawstring and drawimage, but then i believe you would loose the text formatting of the rtb :S
-
Jun 17th, 2008, 02:25 PM
#5
Re: [2008] Richtextbox: Adding Header/Footer to contents
 Originally Posted by Xancholy
OK - add two hidden labels with your header / footer text and set the print properties for where on the page and how you want them to print. If you want the label to change for each page (for example if your footer text is "Page n"..) then handle the PagePrinted event and update the label text in that...
-
Jun 17th, 2008, 04:19 PM
#6
Thread Starter
Fanatic Member
Re: [2008] Richtextbox: Adding Header/Footer to contents
 Originally Posted by Merrion
OK - add two hidden labels with your header / footer text and set the print properties for where on the page and how you want them to print. If you want the label to change for each page (for example if your footer text is "Page n"..) then handle the PagePrinted event and update the label text in that...
Merrion, you lost me. Where exactly do I add the hidden labels ?
-
Jun 17th, 2008, 04:22 PM
#7
Hyperactive Member
Re: [2008] Richtextbox: Adding Header/Footer to contents
on the form i guess, doesn't matter where, as you choose where to print in the print properties
-
Jun 17th, 2008, 04:24 PM
#8
Thread Starter
Fanatic Member
Re: [2008] Richtextbox: Adding Header/Footer to contents
Still lost. I want to print the richtextbox contents only, not the form itself.
So I add the hidden labels to the form and then ?
-
Jun 18th, 2008, 02:13 AM
#9
Re: [2008] Richtextbox: Adding Header/Footer to contents
Set the extended properties provided by the MCL Form Print Helper component : Print = True, BoundingRectangle to where on teh page it goes etc.
-
Jun 18th, 2008, 01:58 PM
#10
Thread Starter
Fanatic Member
Re: [2008] Richtextbox: Adding Header/Footer to contents
Thanks Merrion. For a footer on every page showing Page n of x, how would I set it up ? What would be the bounding rectangle dimensions ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|