Hello Thomas:
Thank you for your useful help.
The code that you gave me is helpful, when "uno::Sequence<
sheet::TableFilterField2 > aTableFilterFields2(
xSheetFilterDescriptor2->getFilterFields2() )" is executed in function
ScXMLExportDatabaseRanges::WriteFilterDescriptor(constuno::Reference<sheet::XSheetFilterDescriptor2>&
), the program crash, I don't know why it happens, could you give me
some help? Thank you.
Best Regards!
Gao Zemin
gaozm
2008-04-01
发件人: Thomas Benisch
发送时间: 2008-03-31 21:27:47
收件人: [email protected]
抄送:
主题: Re: [sc-dev] Something about the last patch of issue 35579
Hi Gao,
the problem is simply, that you call the
WriteFilterDescriptor( const Reference < XSheetFilterDescriptor >& )
method only. The following code might be helpful in
ScXMLExportDatabaseRanges::WriteDatabaseRanges():
Reference < XSheetFilterDescriptor2 > xSheetFilterDescriptor2(
xSheetFilterDescriptor, UNO_QUERY );
if ( xSheetFilterDescriptor2.is() )
{
WriteFilterDescriptor( xSheetFilterDescriptor2, sDatabaseRangeName );
}
else
{
WriteFilterDescriptor( xSheetFilterDescriptor, sDatabaseRangeName );
}
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]