Hello everyone hope your all well

Can anyone point me in the right direction in order to print either a string of text or text contained in a richtext box

Code examples would be great