Convert numeric amounts into written words

“How can I convert numeric amounts into written words within the sales invoice?”