Changes in RichText not showing on web, plz help

Hi

Im constructing a document handling system for creating and showing documents on the web, and i’ve run into a problem i cant resolve.

I need to make a document with some values that i can translate, eg. [Companyname] is translated into My Company ApS. This part is working perfectly, but when i want to show the document on my website, then the value is still [Companyname]???

There is to much code to show here but the essence is this:

Dim doc as NotesDocument, url As String

set doc = translateDocument(“docname”)

doc.save true, false

url = |http://www.adress+db.nsf/0/| + doc.universalID

Print |

Wait a moment...
|

This code is placed in an agent which is envoked from my website, the idea is that it translates the document and shows it.

If i dont show the document and just saves it and open it in my Notes Client the fields get translated just fine.

Whats wrong?

Thank you for any help

Jacob