https://bugs.freedesktop.org/show_bug.cgi?id=45570

             Bug #: 45570
           Summary: : Cannot embed Writer document in an IBM Lotus Notes
                    rich text field
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.4.5 release
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
 Status Whiteboard: BSA
          Severity: normal
          Priority: medium
         Component: Libreoffice
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Problem description: An IBM Lotus Notes application makes use of Writer
documents embedded in rich text fields. The object embedding operation is
performed by means of native Lotusscript methods which currently work with
OpenOffice 3.2.1 but have failed every try with LibreOffice up to version 3.4.5
(the last I've tested). Those methods also work with Microsoft Office
documents.

Steps to reproduce:

1. Have LibreOffice 3.4.5 installed (any version after 3.3.0 fits).

2. Create a new, empty Writer document and save it to "C:\test.odt".

3. Create a new Lotus Domino application (tested with versions 6.5.1 and
8.5.2), open it inside Lotus Domino Designer and paste the following
Lotusscript code under "Queryopen" of the default view:

Sub Queryopen(Source As Notesuiview, Continue As Variant)
      Dim session As New NotesSession
      Dim doc As NotesDocument
      Dim rtitem As NotesRichTextItem
      Dim OLE As NotesEmbeddedObject
      Set doc = session.CurrentDatabase.CreateDocument
      Set rtitem = New NotesRichTextItem( doc , "rt" )
      On Error Goto didnt_work
      Set OLE = rtitem.EmbedObject( EMBED_OBJECT , "" ,  C:\test.odt" , "" )
      Msgbox "Object succesfully embedded", 64, "OLE test"
just_quit:
      Continue = False
      Exit Sub
didnt_work:
      Msgbox "Cannot embed object" & Chr(13) & "Lotus Notes error message:" &
Error$, 16, "OLE test"
      Resume just_quit
End Sub

4. Save changes, close Lotus Domino Designer and run/open the application.

5. Popup window displays "Cannot embed object".

6. Uninstall LibreOffice, install OpenOffice 3.2.1, create a new "C:\test.odt"
Writer document and open the Notes application.

7. Popup window displays "Object succesfully embedded".

8. Install any Microsoft Office suite and create a "C:\test.doc" Word document.
Open Lotus Domino Designer and replace "C:\test.odt" with "C:\test.doc" under
"Queryopen". Close Designer and open the Notes application.

9. Popup window displays "Object succesfully embedded".

Platform: Windows XP Professional SP3.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to