Issue 8117 - xstorable.storeAsURL throws UnknownPropertyException: FilterFlags
Summary: xstorable.storeAsURL throws UnknownPropertyException: FilterFlags
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows 2000
: P3 Trivial
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@api
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-10-07 11:57 UTC by Unknown
Modified: 2013-02-24 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-10-07 11:57:52 UTC
I am trying to save a document using filter 'swriter: Text (encoded)'

propertyvalue[ 0 ] = new PropertyValue();
propertyvalue[ 0 ].Name = "Overwrite";
propertyvalue[ 0 ].Value = new Boolean(true);
propertyvalue[ 1 ] = new PropertyValue();
propertyvalue[ 1 ].Name = "FilterName";
propertyvalue[ 1 ].Value = DocumentConverter.stringConvertType;
propertyvalue[ 2 ] = new PropertyValue();
propertyvalue[ 2 ].Name = "FilterFlags";
propertyvalue[ 2 ].Value = "Unicode";

xstorable.storeAsURL( stringUrl, propertyvalue );

The call to storeAsURL throws: 
com.sun.star.beans.UnknownPropertyException: FilterFlags

I dont know if this is bug, or am I setting FilterFlags property incorectly?
Comment 1 ooo 2002-12-19 12:05:08 UTC
it has to be "FilterOptions" which is undocumented in OOo 1.0, but
implemented. It wil be documented in OOo 1.1.

But when I use it, OOo crashes in storeAsURL()
Comment 2 Mathias_Bauer 2003-01-08 15:01:11 UTC
Andreas, Please can you test this with OOo1.0.2?
Comment 3 andreas.schluens 2003-01-13 08:07:08 UTC
I've tried the following macro ... and it worked fine for an OOo1.0.2
version. But I will try it for 1.1Beta too ...

Sub Main
	doc = thisComponent
	dim propertyvalue(2) as new com.sun.star.beans.PropertyValue
	propertyvalue( 0 ).Name = "Overwrite"
	propertyvalue( 0 ).Value = true
	propertyvalue( 1 ).Name = "FilterFlags"
	propertyvalue( 1 ).Value = "Unicode"
	propertyvalue( 2 ).Name = "FilterName"
	propertyvalue( 2 ).Value = "swriter: Text (encoded)"
	doc.storeAsURL("file:///c:/temp/t1.txt",propertyvalue())
End Sub
Comment 4 andreas.schluens 2003-01-13 09:05:19 UTC
OK - the exception is thrown for 1.0.1 but not for 1.0.2. They was 
removed here, because it's not specified to do so.
On the other side this property isn't supported for this API call at
all. Please use "FilterOptions" instead of that. The described crash
couldn't be reproduced.
That's why I set it to FIXED. Please check it for the next 1.0.2 or
1.1beta version again - it's they are available.
Comment 5 andreas.schluens 2003-02-20 06:27:51 UTC
.
Comment 6 andreas.schluens 2003-02-20 06:28:42 UTC
AS->TM: Please verify if this problem occure in our newest OO 1.1 Beta
version. Use the little basic macro above to check if an exception or
crash occure. THX.
Comment 7 michael.bemmer 2003-05-06 16:02:50 UTC
Too late for beta2, re-targeted to 1.1 RC.
Comment 8 ingenstans 2003-05-12 10:03:42 UTC
Both filteroptions and filterflags work with 644_m11 so I have marked 
this fixed.
Comment 9 thorsten.ziehm 2003-05-20 16:17:24 UTC
This task is fixed or worked in OOo 1.1 beta2.
Comment 10 atr 2003-07-16 15:55:44 UTC
ATR: As TM has seen this issue fixed in beta2, so I close this bug.