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

            Bug ID: 91046
           Summary: Trouble Registering an XLS Data Source via the API
                    using VBScript
           Product: LibreOffice
           Version: 4.2.2.1 release
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

When registering a data source based on an XLS file manually within Writer
using Edit | Exchange Database..., everything works. However, if I try to
dynamically create a data source referencing the same XLS file via the API, the
default "table" named "Sheet1" that is created when registering the data source
manually within Writer isn't added.

Here is VBScript that will reproduce the behavior:

Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager")
Set objDesktop= objServiceManager.createInstance("com.sun.star.frame.Desktop")
Set oBaseContext=
objServiceManager.createInstance("com.sun.star.sdb.DatabaseContext")
Call oBaseContext.registerDatabaseLocation("sample",
"file:///D:/dev/LibreOffice/SampleData/mailmrg000.xls")

The data source named "sample" will not have a Sheet1 "table".

-- 
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