Bug 156991 - The document embedded in the OLE frame does not open
Summary: The document embedded in the OLE frame does not open
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-29 19:48 UTC by Kadet
Modified: 2023-09-07 11:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Demo-file (268.28 KB, application/zip)
2023-08-29 19:50 UTC, Kadet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kadet 2023-08-29 19:48:17 UTC
Description:
An existing document that is embedded in an OLE-frame embedded in the Base form does not open.

Steps to Reproduce:
1.Extract files from the db_with_ref_1 archive.zip and put on the desktop
2.Run the db_with_ref_1.odb file
3.Open Form1

Actual Results:
The rtf.odt document embedded in the OLE frame does not open. There is a puzzle in place of the document.

Expected Results:
The rtf.odt document embedded in the OLE frame should open and show its contents


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Prior to LO version 7.5.3, this function worked well. The documents embedded in the OLE-frame were opened.
Comment 1 Kadet 2023-08-29 19:50:41 UTC
Created attachment 189231 [details]
Demo-file

Extract the archive to the desktop.
Run the db_with_ref_1.odb file.
Open form1.
Comment 2 Mike Kaganski 2023-09-07 08:38:03 UTC
Just as with bug 155750, this is a regression after commit 52aa46468531918eabfa2031dedf50377ae72cf7. Since bug 155750 is dedicated to the private:factory urls, this one is about an UI to allow update of external links in Base subcomponents.

This problem may be workarounded by a macro to pass the UpdateDocMode propertyvalue to the loading procedure, like this:

Sub OpenForm1
  ThisDataBaseDocument.CurrentController.Connect()
  Dim args(0) As New com.sun.star.beans.PropertyValue
  args(0).Name = "UpdateDocMode"
  args(0).Value = com.sun.star.document.UpdateDocMode.QUIET_UPDATE
  ThisDatabaseDocument.CurrentController.loadComponentWithArguments( _
    com.sun.star.sdb.application.DatabaseObject.FORM, _
    "Form1", _
    FALSE, _
    args()) 
End Sub

This macro may be assigned to a control, or to a document event like "Open Document", to open automatically on DB opening.
Comment 3 Kadet 2023-09-07 11:49:45 UTC
Thanks!