Hi Gao,
I cannot reproduce this crash. Can you provide me with some more
details, e.g. a stack trace.
After I added the code the export of the new filter conditions works
fine. But I noticed, that the import of the new conditions fails,
I think you should debug this, too.
In addition I recommend to use some slightly modified code:
uno::Reference< sheet::XSheetFilterDescriptor2 >
xSheetFilterDescriptor2(
xSheetFilterDescriptor, uno::UNO_QUERY );
if ( xSheetFilterDescriptor2.is() )
{
WriteFilterDescriptor( xSheetFilterDescriptor2,
sDatabaseRangeName );
}
else if ( xSheetFilterDescriptor.is() )
{
WriteFilterDescriptor( xSheetFilterDescriptor,
sDatabaseRangeName );
}
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]