| Summary: | Microsoft Word input field become static when using libreoffice (wdFieldFormTextInput) | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | AngelBlueSky <tazzi> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | blocker | CC: | jalojo |
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | Word document with input field | ||
Hello AngelBlueSky, Importing your aaa.doc in LO 4.2.4.1 & Windows 7 Home Premium, I get a text field, not as a simple text. Jacques (In reply to comment #1) > Hello AngelBlueSky, > > Importing your aaa.doc in LO 4.2.4.1 & Windows 7 Home Premium, I get a text > field, not as a simple text. > > Jacques Ok but are you able to get the bookmark of that field, I don't think so!!! With openoffice I can get all text field 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! Trust me if I say it's a Bug! Thanks anyway. The line:
MessageBox.Show(x.GetType().InvokeMember("hasMoreElements", BindingFlags.InvokeMethod, null, x, null).ToString());
gives me FALSE!!!
Also triybg 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());
*** Bug 79401 has been marked as a duplicate of this bug. *** |
Created attachment 98937 [details] Word document with input field Sorry to write again but I got no answer last time. I can work on word input field using openoffice via reflection (inserting, compiling etc etc), but I can't do the same with libreoffice, whenever I open a word document containing those text fields they become simple text! LibreOffice_4.2.4