Problem in Converting Doc To HTML

Hello,

I am trying to convert notes document to HTML by using following script “www.nsftools.com/tips/DocToHtml.lss” in web application. But it is giving me error at “HtmlCreateConverter(converter)” function, i.e Can not create HTML converter.

It is perfectly working fine when I run the code in notes client.

Please suggest. Or is there any other method that I can use to convert Notes document to HTML. I have used by doing it thru MIME types but in this case the UI gets changed.

Thanks.