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

          Priority: medium
            Bug ID: 79401
          Assignee: [email protected]
           Summary: Is there anybody using LO via Reflection? Opening word
                    doc and using text field?
          Severity: critical
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: 4.2.4.2 release
         Component: Writer
           Product: LibreOffice

Created attachment 100092
  --> https://bugs.freedesktop.org/attachment.cgi?id=100092&action=edit
Different behavior

Thenk I'm posting again because I got no answer to this strange behavior
comnpared to OpenOffice.
Hope somebody can  understand and help!

Try opening the doc file I sent with word, openoffice and libreoffice.
Try double click on it and see what happens!
With LO, nothing!


With openoffice via Reflection I can get all text field (from a word document)
like this, opening a file like the one I sent:
Object OOTextFields = OODoc.GetType().InvokeMember("getTextFields",
BindingFlags.InvokeMethod, null, OODoc, new object[0]);

Object x = OOTextFields.GetType().InvokeMember("createEnumeration",
BindingFlags.InvokeMethod, null, OOTextFields, new object[0]);

//MessageBox.Show(x.GetType().InvokeMember("hasMoreElements",
BindingFlags.InvokeMethod, null, x, null).ToString());

while ((bool)x.GetType().InvokeMember("hasMoreElements",
BindingFlags.InvokeMethod, null, x, null))
{
//do anything
}

with LO I can't enumerate any field!


Also triyng to enumerate bookmarks give me 0!!!

object myBookmarks = OODoc.GetType().InvokeMember("getBookmarks",
BindingFlags.InvokeMethod, null, OODoc, new object[0]);
object myBookmarksCount = oBookmarks.GetType().InvokeMember("getCount",
BindingFlags.InvokeMethod, null, oBookmarks, new object[0]);
int nCount = (int)myBookmarksCount;
MessageBox.Show(nCount.ToString());

Thanks again

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