View Full Version : Manipulating Header and Footer Text
Unregistered
January 17, 2003, 18:57:32
With the TX Text .NET version 10 is there a way to manipulate the header and footer text programically? For example is there a way to place "Hello World" at the top of each page without the user having to do it manually?
Thanks everyone.
This message was originally posted by Ryan in the old TX Text Control Support Forum.
Meik Dankleff
January 20, 2003, 16:43:30
In the .NET version you have to use the HeadersAndFooters property to add a header to your document.
Unregistered
January 20, 2003, 21:03:01
I understand that you need to use the HeadersAndFooters property, however say I want to just add in the text "Hello World" to the page header. Is there a way I can manipulate text in the headers and footers?
Meik Dankleff
January 21, 2003, 17:15:53
Here is VB .NET sample code:
Dim hf As TXTextControl.HeaderFooter
TextControl1.HeadersAndFooters.Add(TXTextControl.H eaderFooterType.Header)
hf = TextControl1.HeadersAndFooters.GetItem(TXTextContr ol.HeaderFooterType.Header)
hf.Selection.Text = "Header Text"
Unregistered
January 21, 2003, 18:03:04
Very good, thanks for your help.