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 <[email protected]>:
> 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().
>
> Tora
>
> Jakob Mandalka wrote:
>>
>> Noone any Idea how to make this?
>>
>> 2009/8/6 Jakob Mandalka <[email protected]>:
>>>
>>> Hello everyone, i am new here and i have a question to ask which might be
>>> a
>>> little complicated.
>>> What i want to do is to develop a component such as a button in open
>>> office
>>> which , when pressed, imports an xml file which can be selected by a file
>>> dialog and apply an already installed xslt import filter -which basically
>>> transforms the XML file and fits its data to a simple table-.So the
>>> result
>>> is a report-like .odt file with data provided by my xml file.
>>> (this is the final goal,for the moment i want to just do it from command
>>> line java program)
>>>
>>> I am stuck at how can i use the api to load a filter package i installed
>>> before opening the document,so that when the page opens you see the .odt
>>> file with the table and my data..
>>> i am able to do so from openoffice interface , the traditional way, but
>>> how
>>> can i do it programmatically..?For the moment i open a file from java
>>> using
>>> the NOA API but i dont find any info on how to apply a filter prior to
>>> opening
>>> it.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to