https://bugs.documentfoundation.org/show_bug.cgi?id=103278
--- Comment #4 from [email protected] ---
Some more info:
Although there are a number of fields in the template, the enumeration only
finds one item, so that single item is probably not a textfield anyway - hence
why supportsService fails. Seems the enum doesn't recognize any formfields at
all...
Btw; same problem in C# :
XEnumeration xEnumTxtFields = xEnumTxtFieldsAccess.createEnumeration();
while (xEnumTxtFields.hasMoreElements()) {
uno.Any xTextFld0 = xEnumTxtFields.nextElement();
XTextField xTextFld = (XTextField)xTextFld0.Value;
// Verify that field is an Input Field.
if
((((XServiceInfo)xTextFld).supportsService("com.sun.star.text.textfield.Input")))
{
It finds only one single item and it ain't no texfield...
Again, this code has worked with openoffice for years. Actually, I think I even
ran it successfully for a while in early LO - shortly after the separation from
OOo.
/Christer
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs