Free Support Forum - aspose.com

SSRS 2005 Rendering Problem with Matrix object

I am currently evaluating Aspose.Words for Reporting Services, in particular with SQL 2005. However, I am having difficulties rendering a report that uses the Matrix object. When I delete the matrix object, it renders to Word fine. When I place a matrix object back on the report, I received an error when trying to export the report to Word.

Closer examination of the exception reveals the following:

Unable to cast object of type 'ӓ.僂' to type 'ӓ.偤'.v

Anyone seen this? I tried using the latest Aspose.Words DLL released on 1st April 2013, but to no avail.

Thanks

Hi Stefan,


Thanks for your inquiry. In case you are using an older version of Aspose.Words for Reporting Services, I would suggest you please upgrade to the latest version (v3.9.0) from here and let us know how it goes on your side.

If the problem still remains, please use select statement to populate the data inside your RDL file and share that RDL file with us for investigation purposes. I will investigate the issue on my side and provide you more information.

Please see the following DataSet example with select statement for your kind reference:

<DataSets><o:p></o:p>

<DataSet Name=DataSet1><o:p></o:p>

<Query><o:p></o:p>

<DataSourceName>DataSource1</DataSourceName><o:p></o:p>

<CommandText>select 1 as value, ‘label1’ as label<o:p></o:p>

union all<o:p></o:p>

select 2 as value, ‘label2’ as label<o:p></o:p>

union all<o:p></o:p>

select 3 as value, ‘label3’ as label<o:p></o:p>

union all<o:p></o:p>

select 4 as value, ‘label4’ as label<o:p></o:p>

</CommandText><o:p></o:p>

</Query><o:p></o:p>

<Fields><o:p></o:p>

<Field Name=value><o:p></o:p>

<DataField>value</DataField><o:p></o:p>

<rd:TypeName>System.Int32</rd:TypeName><o:p></o:p>

</Field><o:p></o:p>

<Field Name=label><o:p></o:p>

<DataField>label</DataField><o:p></o:p>

<rd:TypeName>System.String</rd:TypeName><o:p></o:p>

</Field><o:p></o:p>

</Fields><o:p></o:p>

</DataSet><o:p></o:p>

</DataSets>