1797 in words is written as :

One Thousand Seven Hundred and Ninety Seven