https://bugs.documentfoundation.org/show_bug.cgi?id=101130

            Bug ID: 101130
           Summary: loadComponentFromURL
           Product: LibreOffice
           Version: 5.1.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: christer.bergstrom...@gmail.com

Hi,
I've had the following C# code running for years in OpenOffice (and
LibreOffice) without any problem - until now: 

unoidl.com.sun.star.beans.PropertyValue[] lProperties = 
new unoidl.com.sun.star.beans.PropertyValue[1];

// Open template for editing.
Boolean bAsTemplate = false;
lProperties[0] = new unoidl.com.sun.star.beans.PropertyValue();
lProperties[0].Name = "AsTemplate";
lProperties[0].Value = new uno.Any(bAsTemplate);

xComponent = componentLoader.loadComponentFromURL(
  // From this url.
  fileURL,
  // Into a blank frame
  "_blank",
  // Use no searchflag
  0,
  // Properties
  lProperties);

fileURL is a Word .dot template. No macros or such. 
It also fails if I try to load a .ott.

Now I get this exception:
[map_to_uno():[]com.sun.star.beans.PropertyValue] conversion failed
[map_to_uno():unoidl.com.sun.star.beans.PropertyValue.Value
[map_to_uno():any] could not convert type

Regards,
Christer B

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to