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.
Printable View
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.
how do you print ?
Haven't decided yet but Merrion's solution looks very attractive
that i dont know then :D...
it would have been easy using drawstring and drawimage, but then i believe you would loose the text formatting of the rtb :S
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...Quote:
Originally Posted by Xancholy
Merrion, you lost me. Where exactly do I add the hidden labels ?Quote:
Originally Posted by Merrion
on the form i guess, doesn't matter where, as you choose where to print in the print properties ;)
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 ?
Set the extended properties provided by the MCL Form Print Helper component : Print = True, BoundingRectangle to where on teh page it goes etc.
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 ?