NoteRichTextStyle

Hi!

I´m trying to create a fax in the notesclient, but I have problems when I want to format my text. I´m using the following code to set font, size and bold.

Dim richStyle As NotesRichTextStyle

Set richStyle = session.CreateRichTextStyle

richStyle.NotesFont = FONT_VERDANA

richStyle.FontSize = 10

richStyle.Bold = True

This code is almost exactly same as in the Help, but when I am sending the fax I´v got the following message.

Object variable not set

And when i look in the debugger I can see that it is on row:

Set richStyle = session.CreateRichTextStyle

What is wrong?

best regards,

Henrik

Subject: NoteRichTextStyle

The problem is solved…

I forgot to Dim a new session…

best regards

Henrik