LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RichTextItem in Lotis Notes

Has anyone successfully attached a document to a Lotus Notes email? I'm having some issues, as you can see with the diagram.

 

A newbie to Labivew 2009...sure could get some pointers!!

 

 

0 Kudos
Message 1 of 6
(3,332 Views)
Please stick to your original thread so others don't rehash the same questions or give you suggestions that have already been proposed. You never answered Logan's question.
Message 2 of 6
(3,320 Views)

I did have a problem with Lotus notes sending an attachment but i finally got it working.

I could send the attachment succesfully but my problem was that i could not open the attachment.

What is your problem? I can't open your VI i have LV8.6. Which diagram?

 

 

0 Kudos
Message 3 of 6
(3,295 Views)
I do not know where to add the RichTextItem within the Case Structure. If I omit the RTI, the email sends with the way I have it working now.
0 Kudos
Message 4 of 6
(3,293 Views)
Not very clear....sorry. The email sends if I remove the Rich Text Item entirely. My problem is I don't know where the Rich Text Item fits in to the diagram I have.
0 Kudos
Message 5 of 6
(3,291 Views)

Old thread revival time!

 

OK, now that I've had some time and done a little investigation...

 

When you wire the Document Class, one of the items you'll see is CreateRichTextItem. Select this and wire this to another Invoke Note..this should bring up the RichText Item Class. Select Embed Object and go from there. The attached VI will explain what I'm doing and hope not confuse you even more.

 

I noticed that my two posts were merged about the RichText and the SendTo item, so I'll continue with the way Lotus Notes likes to send.

 

In VBA (since this is all I have as a text based language), I can send a email by using the Send Method if I declare my SendTo recipients eariler in my code. Like this:

 

Sub TestLotusNotes()
Dim s As New NotesSession, dir As NotesDbDirectory, db As NotesDatabase, doc As NotesDocument

s.Initialize

Set dir = s.GetDbDirectory("")
Set db = dir.OpenMailDatabase
Set doc = db.CreateDocument

With doc
    .ReplaceItemValue "SendTo", "John Doe"
    .ReplaceItemValue "Subject", "Hi"
    .ReplaceItemValue "Body", "This is a test."

    .SaveMessageOnSend = True
    .Send False
End With

Set doc = Nothing
Set db = Nothing
Set dir = Nothing
Set ses = Nothing

End Sub

 

Now, if I wire this in Labview the same way I have it written in my VBA code, it fails when I try to send the email. I get a Error -2147217264 from Lotus Notes. I've noticed that if I place my "To" string to the optional recipients spot, it works. Hmmm....

 

I'm still trying to investigate, but I wondered if anyone else has ran into this problem and gotten this to work without resorting to wiring the SendTo item to the recipients area.

0 Kudos
Message 6 of 6
(3,070 Views)