Font displayed is different from that used by the form, after documents were copied from one database to another

I have an agent (Formula) that adds fields to all the documents in a database; it also changes the form that the document will use, because I’ll be using a different form (different look, 3 additional fields) in the new database. I’m still testing the (new) form, hence I couldn’t use the same synonym as the old form’s.

I have another agent (LotusScript) that copies all the (modified) documents from one database (the one mentioned above) to another. When I open the copied documents in the new database, however, the font used for display is different from that used by the form. Documents created with the same form, in the same database have no problem displaying the correct font.

What could be causing this problem?

Thank you.

Subject: Font displayed is different from that used by the form, after documents were copied from one database to another.

rich text fields have their own font information. How are you copying the documents? which method of which object?

Subject: RE: Font displayed is different from that used by the form, after documents were copied from one database to another.

Hi Alan.

It’s not the just the rich text fields’ font that changed. It’s the entire form’s, including labels.

Here is my agent that copied the documents:

Dim session As New NotesSession

Dim oldSIR As NotesDatabase

Dim newSIR As NotesDatabase

Dim dc As NotesDocumentCollection

Dim doc As NotesDocument

Set oldSIR = session.CurrentDatabase

Set newSIR = New NotesDatabase _

("", "Domino DBs\Revised SIRs\WDES\SIR for WDES.nsf")

Set dc = oldSIR.UnprocessedDocuments

Set doc = dc.GetFirstDocument()

While Not(doc Is Nothing)

Call doc.CopyToDatabase(newSIR)

Set doc = dc.GetNextDocument(doc)

Wend