Hi,
On 11/06/09 08:50, Juergen Schmidt wrote:
Ariel Constenla-Haile wrote:
Hello Wei,
On Thursday 05 November 2009, 22:51, Wei Min Teo wrote:
I'm not going to use any filters or perhaps it automatically uses a
default
filter. Anyway, to clarify, I think my problem occurs with opening
*.doc
or *.ppt files. When I open it prompts me on which character encoding i
want to use. This would "hang" an automation program.
this sounds like the Writer encoding text dialog, that shows up for
example when you try to open with OOo an unkown file format (by
default is treated as text, and you are prompted to select the
encoding, etc.)
Aren't you passing a filter name?
even if he doesn't use a filter name, the type detection should work
well for .doc and .ppt files. Sounds strange.
The type detection works well and the correct filter is detected as I
understand. The problem here, is that the mentioned filters need
character encoding, thus the FilterOptions dialog ( not "Unknown file
format" dialog ) is shown.
Generally speaking, a filter that gets no filter options should check
the CharacterSet property from the MediaDescriptor. Unfortunately it
does not happen in this case. For me it looks like a missing feature, I
would suggest to submit an enhancement issue for each filter that does
not support the property currently.
The only workaround, that I see for now, is to make the type detection
explicitly to get the required filter name. And based on the filter name
provide the filter options in the format the filter requires it. The
problem here is that there seems to be no documentation regarding filter
options format for each filter. Thus you would probably have to ask on
the applications-related lists regarding each filter ( for example on
[email protected] regarding writer filters ).
Best regards,
Mikhail.
Juergen
Thus, I thought I
could pass in the character encoding set for it to open by using
ChracterSet UTF8 in the media descriptor. However, this didn't work
even
with "UTF8". Do I have to use this with some filter implementation?
If so,
how can i do that?
Regards
---------------------------------------------------------------------
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]