On 29.11.2010 09:27, Swati Soni wrote:
Dear Sir,

I tried executing the Following code. The mxDocFactory is unable to open the
footnote service.
How to resolve this error. >
Request you to please reply to this problem.

try
      {
          // Create a new footnote from the document factory and get it's
          // XFootnote interface
          XFootnote xFootnote = (XFootnote) UnoRuntime.queryInterface(
XFootnote.class,
              mxDocFactory.createInstance ( "com.sun.star.text.Footnote" ) );

I don't know what "mxDocFactory" is in your code. If I take it from a text document, creating a footnote works as expected, e.g. in Basic:

Sub Main

  obj = ThisComponent.createInstance("com.sun.star.text.Footnote")
  print obj.dbg_supportedinterfaces
        
End Sub

This will display all interfaces of the implementation class SwXFootnote.

Regards,
Mathias

--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
Please don't reply to "nospamfor...@gmx.de".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to