Hi,

Looking up those key words - application, getDocumentService, and loadDocument 
- in the Internet gives us information on what you are using.
That type of helper classes developed by a third party could be one of the ways 
to handle document files.

To understand OpenOffice.org's original API, I guess, many people here would 
recommend use of Software Development Kit of OpenOffice.org first. Once you 
have understood the API, then try to use such helper classes offered by third 
parties.

SDK can be downloaded from a link Download in the navigator SDK at
http://api.openoffice.org/

There are many example codes available in the SDK. They could help you 
understand the API.

API documentation of the method I mentioned is also available in the SDK and a 
web site at
http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XComponentLoader.html#loadComponentFromURL

Tora

Jakob Mandalka wrote:
But this I don't understand.

At the moment I open my document this way

document = application.getDocumentService().loadDocument(iFrame,
location + "\\" + file.getFullPath().toOSString(),
DocumentDescriptor.DEFAULT);

This will open a document.

And now? How I spezifiy here now a Filter and and file which have to
be imported? Sry for this stupid question but I am not the best in
this case. :(

2009/8/11 tora - Takamichi Akiyama <t...@openoffice.org>:
It would not be hard to do that. There might be lots of solutions.

This is one of the examples:
http://distribution.openoffice.org/source/browse/distribution/mirrors/repository/production/tools/Calc/

The key you might have been looking for would be:

 1. Name the filter as you like and fill "Filter name" field with it
   during XSLT installation to your OpenOffice.org.

 2. Specify the exact same filter name as a value of "FilterName"
   property which will be passed to loadComponentFromURL().


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

Reply via email to